]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/socket.h
Add method to query bound status of a socket
[libs/net.git] / source / net / socket.h
index 1f60f9bb2276942ce31e7eaf69612e4e67641f02..bca58fad4d98d191b7aed753ac88eff493ca3359 100644 (file)
@@ -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 &);