]> git.tdb.fi Git - libs/net.git/blobdiff - source/streamsocket.h
Style update: spaces around assignments
[libs/net.git] / source / streamsocket.h
index 0bba5c39c1be7adff4d06cc85802368871b7610a..66841de0217f6fd5fb20dc6064c745980241ba47 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspnet
-Copyright © 2008  Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
 #ifndef MSP_NET_STREAMSOCKET_H_
 #define MSP_NET_STREAMSOCKET_H_
 
@@ -16,6 +9,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 +19,15 @@ public:
        */
        sigc::signal<void, int> signal_connect_finished;
 
-       StreamSocket(Family, int =0);
-       bool get_connecting() const { return connecting; }
+private:
+       StreamSocket(SocketHandle, const SockAddr &);
+public:
+       StreamSocket(Family, int = 0);
+
+       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);
 };