X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fclientsocket.h;h=672c32bc98fca3f570d7b3b31948debcb2f434f4;hb=f97f21c17f24e1d426e5b5863676071a5809b185;hp=db684f4a5d32dc99ae873379eccc58eaea2df15a;hpb=debe1004676d5431e571d9c4361072661dcc88c4;p=libs%2Fnet.git diff --git a/source/net/clientsocket.h b/source/net/clientsocket.h index db684f4..672c32b 100644 --- a/source/net/clientsocket.h +++ b/source/net/clientsocket.h @@ -38,10 +38,12 @@ public: bool is_connecting() const { return connecting; } bool is_connected() const { return connected; } + void shutdown(IO::Mode); + const SockAddr &get_peer_address() const; protected: - virtual unsigned do_write(const char *, unsigned); - virtual unsigned do_read(char *, unsigned); + std::size_t do_write(const char *, std::size_t) override; + std::size_t do_read(char *, std::size_t) override; }; } // namespace Net