X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fstreamsocket.h;h=84b347dbc07da8ed04217da249248a7ea329c28f;hb=HEAD;hp=8b39e91afd358214168c977e299e01bc714d3e76;hpb=50e9f9ea7f7385a2c5931fca2b8fb1103078e67c;p=libs%2Fnet.git diff --git a/source/net/streamsocket.h b/source/net/streamsocket.h index 8b39e91..84b347d 100644 --- a/source/net/streamsocket.h +++ b/source/net/streamsocket.h @@ -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