]> git.tdb.fi Git - libs/net.git/blob - source/streamlistensocket.h
Don't close socket on Communicator error
[libs/net.git] / source / streamlistensocket.h
1 #ifndef MSP_NET_STREAMLISTENSOCKET_H_
2 #define MSP_NET_STREAMLISTENSOCKET_H_
3
4 #include "socket.h"
5
6 namespace Msp {
7 namespace Net {
8
9 class StreamSocket;
10
11 class StreamListenSocket: public Socket
12 {
13 private:
14         bool listening;
15
16 public:
17         StreamListenSocket(Family, int = 0);
18
19         int connect(const SockAddr &);
20         void listen(const SockAddr &, unsigned = 4);
21         StreamSocket *accept();
22 };
23
24 } // namespace Net
25 } // namespace Msp
26
27 #endif