1 /* cygserver_transport_sockets.h
3 Copyright 2001, 2002 Red Hat Inc.
5 Written by Robert Collins <rbtcollins@hotmail.com>
7 This file is part of Cygwin.
9 This software is a copyrighted work licensed under the terms of the
10 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
13 #ifndef _CYGSERVER_TRANSPORT_SOCKETS_
14 #define _CYGSERVER_TRANSPORT_SOCKETS_
16 #include <sys/socket.h>
19 class transport_layer_sockets : public transport_layer_base
22 #ifndef __INSIDE_CYGWIN__
23 virtual int listen ();
24 virtual class transport_layer_sockets *accept (bool *recoverable);
27 virtual void close ();
28 virtual ssize_t read (void *buf, size_t len);
29 virtual ssize_t write (void *buf, size_t len);
30 virtual int connect ();
32 transport_layer_sockets ();
33 virtual ~transport_layer_sockets ();
36 /* for socket based communications */
38 struct sockaddr_un _addr;
40 const bool _is_accepted_endpoint;
41 bool _is_listening_endpoint;
43 transport_layer_sockets (int fd);
46 #endif /* _CYGSERVER_TRANSPORT_SOCKETS_ */