Browse Source

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

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/vorner-sockcreator@3176 e5f2f494-b856-4b98-b285-d166d9295462
Michal Vaner 14 years ago
parent
commit
d11a387719
1 changed files with 3 additions and 11 deletions
  1. 3 11
      src/bin/sockcreator/sockcreator.h

+ 3 - 11
src/bin/sockcreator/sockcreator.h

@@ -23,6 +23,8 @@
 #ifndef __SOCKCREATOR_H
 #define __SOCKCREATOR_H 1
 
+#include <util/io/fd_share.h>
+
 #include <sys/types.h>
 #include <sys/socket.h>
 
@@ -54,16 +56,6 @@ 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.
  */
 typedef
@@ -100,7 +92,7 @@ int
 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
 }