From d2a04687736c6d1613f44d67bdebc04466efdbd2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 24 Jan 2019 03:21:23 +0200 Subject: [PATCH] Add method to query bound status of a socket --- source/net/socket.h | 1 + 1 file changed, 1 insertion(+) 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 &); -- 2.45.2