]> git.tdb.fi Git - libs/net.git/blob - source/streamlistensocket.h
Style update: spaces around assignments
[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 public:
14         StreamListenSocket(Family, int = 0);
15         int connect(const SockAddr &);
16         void listen(const SockAddr &, unsigned = 4);
17         StreamSocket *accept();
18 private:
19         bool listening;
20 };
21
22 } // namespace Net
23 } // namespace Msp
24
25 #endif