]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/streamsocket.h
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / net / streamsocket.h
index 8b39e91afd358214168c977e299e01bc714d3e76..84b347dbc07da8ed04217da249248a7ea329c28f 100644 (file)
@@ -2,11 +2,12 @@
 #define MSP_NET_STREAMSOCKET_H_
 
 #include "clientsocket.h"
+#include "mspnet_api.h"
 
 namespace Msp {
 namespace Net {
 
-class StreamSocket: public ClientSocket
+class MSPNET_API StreamSocket: public ClientSocket
 {
        friend class StreamServerSocket;
 
@@ -23,12 +24,12 @@ public:
        If the socket is non-blocking, this function may return before the
        connection is fully established.  The caller must then use either the
        poll_connect function or an EventDispatcher to finish the process. */
-       virtual bool connect(const SockAddr &);
+       bool connect(const SockAddr &) override;
 
-       virtual bool poll_connect(const Time::TimeDelta &);
+       bool poll_connect(const Time::TimeDelta &) override;
 
 private:
-       void on_event(IO::PollEvent);
+       void on_event(IO::PollEvent) override;
 };
 
 } // namespace Net