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 std::size_t do_write(const char *, std::size_t);
26 virtual std::size_t do_read(char *, std::size_t);