]> git.tdb.fi Git - libs/net.git/blob - source/streamlistensocket.h
Add function to check if handshake is done
[libs/net.git] / source / streamlistensocket.h
1 /* $Id$
2
3 This file is part of libmspnet
4 Copyright © 2008  Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_NET_STREAMLISTENSOCKET_H_
9 #define MSP_NET_STREAMLISTENSOCKET_H_
10
11 #include "socket.h"
12
13 namespace Msp {
14 namespace Net {
15
16 class StreamSocket;
17
18 class StreamListenSocket: public Socket
19 {
20 public:
21         StreamListenSocket(Family, int =0);
22         int connect(const SockAddr &);
23         void listen(const SockAddr &, unsigned =4);
24         StreamSocket *accept();
25 private:
26         bool listening;
27 };
28
29 } // namespace Net
30 } // namespace Msp
31
32 #endif