X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fstreamsocket.h;h=acec0eab4dd069cf9bbab2e81790f24386649da2;hp=0bba5c39c1be7adff4d06cc85802368871b7610a;hb=3103b110c863c19a56cc176a173cc30ddf13afec;hpb=3970ee9cf7978c462390d49e083deb740d71c6fe diff --git a/source/streamsocket.h b/source/streamsocket.h index 0bba5c3..acec0ea 100644 --- a/source/streamsocket.h +++ b/source/streamsocket.h @@ -16,6 +16,9 @@ namespace Net { class StreamSocket: public Socket { friend class StreamListenSocket; +private: + bool connecting; + public: /** Emitted when the socket finishes connecting. The argument is a standard @@ -23,14 +26,15 @@ public: */ sigc::signal signal_connect_finished; +private: + StreamSocket(SocketHandle, const SockAddr &); +public: StreamSocket(Family, int =0); - bool get_connecting() const { return connecting; } + + bool is_connecting() const { return connecting; } int poll_connect(const Time::TimeDelta &); int connect(const SockAddr &); private: - bool connecting; - - StreamSocket(SocketHandle, const SockAddr &); void on_event(IO::PollEvent); };