summaryrefslogtreecommitdiffstats
path: root/src/lib/xfr/fd_share.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/xfr/fd_share.h')
-rw-r--r--src/lib/xfr/fd_share.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/xfr/fd_share.h b/src/lib/xfr/fd_share.h
new file mode 100644
index 0000000000..dd2bf78b3c
--- /dev/null
+++ b/src/lib/xfr/fd_share.h
@@ -0,0 +1,19 @@
+#include <stdlib.h>
+
+namespace isc {
+namespace xfr {
+
+// Receive socket descriptor on unix domain socket 'sock'.
+// Returned value is the socket descriptor received.
+// Errors are indicated by a return value of -1.
+int
+recv_fd(int sock);
+
+// Send socket descriptor "fd" to server over unix domain socket 'sock',
+// the connection from socket 'sock' to unix domain server should be established first.
+// Errors are indicated by a return value of -1.
+int
+send_fd(int sock, int fd);
+
+} // End for namespace xfr
+} // End for namespace isc