From 4deace13e4751f81db731dd18eb6aacd8963233e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 12 Apr 2002 14:52:36 +0000 Subject: * net.cc (cygwin_accept): Set socket type for accepted socket. (socketpair): Set socket type for both sockets. From Egor Duda : * fhandler.h (class fhandler_socket): New member to store socket type. (fhandler_socket::get_socket_type): Access it. (fhandler_socket::set_socket_type): Ditto. * net.cc (cygwin_socket): Store socket type. (cygwin_connect): Disable security checks for connectionless sockets. (cygwin_accept): Ditto. --- winsup/cygwin/fhandler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 3cad291d0..cc54024be 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -357,6 +357,7 @@ class fhandler_socket: public fhandler_base { private: int addr_family; + int type; int connect_secret [4]; HANDLE secret_event; struct _WSAPROTOCOL_INFOA *prot_info_ptr; @@ -397,6 +398,8 @@ class fhandler_socket: public fhandler_base select_record *select_except (select_record *s); void set_addr_family (int af) {addr_family = af;} int get_addr_family () {return addr_family;} + void set_socket_type (int st) { type = st;} + int get_socket_type () {return type;} void set_sun_path (const char *path); char *get_sun_path () {return sun_path;} void set_connect_secret (); -- cgit v1.2.3