Kea: fd_share.h Source File

| Kea 2.2.0

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
20 const int FD_SYSTEM_ERROR = -2;
21 const 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:
isc::util::io::FD_SYSTEM_ERROR
const int FD_SYSTEM_ERROR
Definition: fd_share.h:20
isc::util::io::recv_fd
int recv_fd(const int sock)
Receives a file descriptor.
Definition: fd_share.cc:71
isc::util::io::send_fd
int send_fd(const int sock, const int fd)
Sends a file descriptor.
Definition: fd_share.cc:134
isc::util::io::FD_OTHER_ERROR
const int FD_OTHER_ERROR
Definition: fd_share.h:21
isc
Defines the logger used by the top-level component of kea-lfc.
Definition: agent_parser.cc:143