]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/socket.h
Remove unnecessary destructors from exception classes
[libs/net.git] / source / net / socket.h
index fe5c605049f84ab8396e11f49d0ceda1a3fe032c..a3823ee44d777d008a3454ee0d76e4d90cac7d42 100644 (file)
@@ -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 &);