Kea  1.9.9-git
fd_share.h
Go to the documentation of this file.
1 // Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef FD_SHARE_H_
8 #define FD_SHARE_H_
9 
16 namespace isc {
17 namespace util {
18 namespace io {
19 
20 const int FD_SYSTEM_ERROR = -2;
21 const int FD_OTHER_ERROR = -1;
22 
36 int recv_fd(const int sock);
37 
51 int send_fd(const int sock, const int fd);
52 
53 } // End for namespace io
54 } // End for namespace util
55 } // End for namespace isc
56 
57 #endif
58 
59 // Local Variables:
60 // mode: c++
61 // End:
int recv_fd(const int sock)
Receives a file descriptor.
Definition: fd_share.cc:71
int send_fd(const int sock, const int fd)
Sends a file descriptor.
Definition: fd_share.cc:134
Defines the logger used by the top-level component of kea-dhcp-ddns.
const int FD_OTHER_ERROR
Definition: fd_share.h:21
const int FD_SYSTEM_ERROR
Definition: fd_share.h:20