Cygwin: sockets: move common settings into set_socket_handle()

Move setting address family, socket type and descriptor flags
into fhandler_socket::set_socket_handle method.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-02-16 16:23:32 +01:00
parent bc9b30ea77
commit cff85eaddc
2 changed files with 21 additions and 18 deletions

View File

@ -557,7 +557,7 @@ class fhandler_socket: public fhandler_base
} status;
#ifdef __INSIDE_CYGWIN_NET__
int set_socket_handle (SOCKET sock);
int set_socket_handle (SOCKET sock, int af, int type, int flags);
#endif
public: