From: Mikko Rasa Date: Thu, 24 Jan 2019 01:21:23 +0000 (+0200) Subject: Add method to query bound status of a socket X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d2a04687736c6d1613f44d67bdebc04466efdbd2;p=libs%2Fnet.git Add method to query bound status of a socket --- diff --git a/source/net/socket.h b/source/net/socket.h index fe5c605..bca58fa 100644 --- a/source/net/socket.h +++ b/source/net/socket.h @@ -50,6 +50,7 @@ public: 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 &);