diff options
Diffstat (limited to 'winsup/cygwin/include/cygwin/cygserver_transport_sockets.h')
-rwxr-xr-x | winsup/cygwin/include/cygwin/cygserver_transport_sockets.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/winsup/cygwin/include/cygwin/cygserver_transport_sockets.h b/winsup/cygwin/include/cygwin/cygserver_transport_sockets.h index 97d3baa2303..d960f9c2c52 100755 --- a/winsup/cygwin/include/cygwin/cygserver_transport_sockets.h +++ b/winsup/cygwin/include/cygwin/cygserver_transport_sockets.h @@ -13,18 +13,21 @@ details. */ #ifndef _CYGSERVER_TRANSPORT_SOCKETS_ #define _CYGSERVER_TRANSPORT_SOCKETS_ +#include <sys/socket.h> +#include <sys/un.h> + class transport_layer_sockets : public transport_layer_base { public: #ifndef __INSIDE_CYGWIN__ - virtual void listen (); + virtual int listen (); virtual class transport_layer_sockets *accept (bool *recoverable); #endif virtual void close (); virtual ssize_t read (void *buf, size_t len); virtual ssize_t write (void *buf, size_t len); - virtual bool connect (); + virtual int connect (); transport_layer_sockets (); virtual ~transport_layer_sockets (); @@ -32,10 +35,12 @@ public: private: /* for socket based communications */ int _fd; - struct sockaddr _addr; - int _addr_len; + struct sockaddr_un _addr; + socklen_t _addr_len; + const bool _is_accepted_endpoint; + bool _is_listening_endpoint; - transport_layer_sockets (int newfd); + transport_layer_sockets (int fd); }; #endif /* _CYGSERVER_TRANSPORT_SOCKETS_ */ |