X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fnet%2Fsocket.h;h=a3823ee44d777d008a3454ee0d76e4d90cac7d42;hb=6df110603b3a1248f52741e9d68d0bd032171b60;hp=fe5c605049f84ab8396e11f49d0ceda1a3fe032c;hpb=647e0e3df1ddb4208492a8c336bf12741f5146c0;p=libs%2Fnet.git diff --git a/source/net/socket.h b/source/net/socket.h index fe5c605..a3823ee 100644 --- a/source/net/socket.h +++ b/source/net/socket.h @@ -13,7 +13,6 @@ class bad_socket_state: public std::logic_error { public: bad_socket_state(const std::string &w): std::logic_error(w) { } - virtual ~bad_socket_state() throw() { } }; @@ -50,6 +49,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 &);