Kea 2.5.6
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
16namespace isc {
17namespace util {
18namespace io {
19
20const int FD_SYSTEM_ERROR = -2;
21const int FD_OTHER_ERROR = -1;
22
36int recv_fd(const int sock);
37
51int 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:
const int FD_SYSTEM_ERROR
Definition: fd_share.h:20
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
const int FD_OTHER_ERROR
Definition: fd_share.h:21
Defines the logger used by the top-level component of kea-lfc.