Commit d11a3877 authored by Michal Vaner's avatar Michal Vaner

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
parent 88d4219b
......@@ -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>
......@@ -53,16 +55,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
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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment