]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/clientsocket.h
Use the override specifier when overriding
[libs/net.git] / source / net / clientsocket.h
index db684f4a5d32dc99ae873379eccc58eaea2df15a..672c32bc98fca3f570d7b3b31948debcb2f434f4 100644 (file)
@@ -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