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:
Corinna Vinschen
2018-02-26 17:53:50 +01:00
parent 5b6cbef9e0
commit 1e5e44a9a5
5 changed files with 21 additions and 7 deletions

View File

@ -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);