X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fsocket.h;h=c675ab5801766635e93fbb8a6bbead4497820635;hb=3ab65d35cfd696002e09768a38f98e6a2e1ade81;hp=2e736e9a21d04ffaac1f77a704ae50f3f4ed056b;hpb=5afa6e0e07b20ef58d262d69d96971df9a4be71f;p=libs%2Fnet.git diff --git a/source/net/socket.h b/source/net/socket.h index 2e736e9..c675ab5 100644 --- a/source/net/socket.h +++ b/source/net/socket.h @@ -30,8 +30,8 @@ protected: struct Private; - Private *priv; - SockAddr *local_addr; + Private *priv = nullptr; + SockAddr *local_addr = nullptr; Socket(const Private &); Socket(Family, int, int); @@ -41,10 +41,10 @@ private: public: ~Socket(); - virtual void set_block(bool); - virtual void set_inherit(bool); + void set_block(bool) override; + void set_inherit(bool) override; const IO::Handle &get_handle(IO::Mode); - virtual const IO::Handle &get_event_handle(); + const IO::Handle &get_event_handle() override; /** Associates the socket with a local address. There must be no existing users of the address. */