X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstreamlistensocket.h;h=a24e731721b2334274667bff674cfe1e4c354245;hb=28e7bf7a13656620452e19d017ea5eedf14a8bc5;hp=054f2fbab5aea73c0056b002ee757bc533f77e5f;hpb=f59eded7c3e162bbdfc6db424c9badc730017698;p=libs%2Fnet.git diff --git a/source/streamlistensocket.h b/source/streamlistensocket.h index 054f2fb..a24e731 100644 --- a/source/streamlistensocket.h +++ b/source/streamlistensocket.h @@ -1,10 +1,3 @@ -/* $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_ @@ -17,13 +10,15 @@ class StreamSocket; class StreamListenSocket: public Socket { +private: + bool listening; + public: - StreamListenSocket(Family, int =0); + StreamListenSocket(Family, int = 0); + int connect(const SockAddr &); - void listen(const SockAddr &, unsigned =4); + void listen(const SockAddr &, unsigned = 4); StreamSocket *accept(); -private: - bool listening; }; } // namespace Net