]> git.tdb.fi Git - libs/net.git/blobdiff - source/streamlistensocket.h
Initial revision
[libs/net.git] / source / streamlistensocket.h
diff --git a/source/streamlistensocket.h b/source/streamlistensocket.h
new file mode 100644 (file)
index 0000000..054f2fb
--- /dev/null
@@ -0,0 +1,32 @@
+/* $Id$
+
+This file is part of libmspnet
+Copyright © 2008  Mikkosoft Productions, Mikko Rasa
+Distributed under the LGPL
+*/
+
+#ifndef MSP_NET_STREAMLISTENSOCKET_H_
+#define MSP_NET_STREAMLISTENSOCKET_H_
+
+#include "socket.h"
+
+namespace Msp {
+namespace Net {
+
+class StreamSocket;
+
+class StreamListenSocket: public Socket
+{
+public:
+       StreamListenSocket(Family, int =0);
+       int connect(const SockAddr &);
+       void listen(const SockAddr &, unsigned =4);
+       StreamSocket *accept();
+private:
+       bool listening;
+};
+
+} // namespace Net
+} // namespace Msp
+
+#endif