X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fsocket.h;h=bca58fad4d98d191b7aed753ac88eff493ca3359;hb=d2a04687736c6d1613f44d67bdebc04466efdbd2;hp=1f60f9bb2276942ce31e7eaf69612e4e67641f02;hpb=88bbb4039aa274c7f41ebe3a18085b63427e5475;p=libs%2Fnet.git diff --git a/source/net/socket.h b/source/net/socket.h index 1f60f9b..bca58fa 100644 --- a/source/net/socket.h +++ b/source/net/socket.h @@ -42,12 +42,15 @@ public: ~Socket(); virtual void set_block(bool); + virtual void set_inherit(bool); + const IO::Handle &get_handle(IO::Mode); virtual const IO::Handle &get_event_handle(); /** Associates the socket with a local address. There must be no existing users of the address. */ void bind(const SockAddr &); + bool is_bound() const { return local_addr; } const SockAddr &get_local_address() const; void set_timeout(const Time::TimeDelta &);