1 #ifndef MSP_NET_SERVERSOCKET_H_
2 #define MSP_NET_SERVERSOCKET_H_
12 ServerSockets are used to receive incoming connections. They cannot be used
13 for sending and receiving data.
15 class ServerSocket: public Socket
18 ServerSocket(Family, int, int);
21 virtual void listen(const SockAddr &, unsigned = 4) = 0;
23 virtual ClientSocket *accept() = 0;
25 virtual unsigned do_write(const char *, unsigned);
26 virtual unsigned do_read(char *, unsigned);