[svn] commit: r3176 - /branches/vorner-sockcreator/src/bin/sockcreator/sockcreator.h

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Oct 11 14:47:01 UTC 2010


Author: vorner
Date: Mon Oct 11 14:47:01 2010
New Revision: 3176

Log:
sockcreator uses the send_fd from isc::util::io

Modified:
    branches/vorner-sockcreator/src/bin/sockcreator/sockcreator.h

Modified: branches/vorner-sockcreator/src/bin/sockcreator/sockcreator.h
==============================================================================
--- branches/vorner-sockcreator/src/bin/sockcreator/sockcreator.h (original)
+++ branches/vorner-sockcreator/src/bin/sockcreator/sockcreator.h Mon Oct 11 14:47:01 2010
@@ -22,6 +22,8 @@
 
 #ifndef __SOCKCREATOR_H
 #define __SOCKCREATOR_H 1
+
+#include <util/io/fd_share.h>
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -52,16 +54,6 @@
 typedef
 int
 (*get_sock_t)(const int, struct sockaddr *, const socklen_t);
-
-/**
- * Sends a payload socket file descriptor to destination file descriptor.
- * This is temporary and it will be stolen somewhere in the surrounding code,
- * since it is there already somewhere.
- *
- * TODO Actually steal it.
- */
-int
-send_fd(const int destination, const int payload);
 
 /**
  * Type of the send_fd() function, so it can be passed as a parameter.
@@ -100,7 +92,7 @@
 int
 run(const int input_fd, const int output_fd,
     const get_sock_t get_sock_fun = get_sock,
-    const send_fd_t send_fd_fun = send_fd);
+    const send_fd_t send_fd_fun = isc::util::io::send_fd);
 
 } // End of the namespaces
 }




More information about the bind10-changes mailing list