Cygwin: fhandler_socket: define socketpair as virtual function
...in preparation of moving the type and protocol test into the actual classes. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -255,13 +255,15 @@ fhandler_socket_local::socket (int af, int type, int protocol, int flags)
|
||||
|
||||
int
|
||||
fhandler_socket_local::socketpair (int af, int type, int protocol, int flags,
|
||||
fhandler_socket_local *fh_out)
|
||||
fhandler_socket *_fh_out)
|
||||
{
|
||||
SOCKET insock = INVALID_SOCKET;
|
||||
SOCKET outsock = INVALID_SOCKET;
|
||||
SOCKET sock = INVALID_SOCKET;
|
||||
struct sockaddr_in sock_in, sock_out;
|
||||
int len;
|
||||
fhandler_socket_local *fh_out = reinterpret_cast<fhandler_socket_local *>
|
||||
(_fh_out);
|
||||
|
||||
/* create listening socket */
|
||||
sock = ::socket (AF_INET, type, 0);
|
||||
|
Reference in New Issue
Block a user