Rewrote threaded log code to be more idiomatic.
[invirt/third/libt4.git] / rpc / connection.h
index 8f7d494..1bcb7b6 100644 (file)
@@ -9,14 +9,12 @@
 
 constexpr size_t size_t_max = numeric_limits<size_t>::max();
 
-class thread_exit_exception : exception {};
-
 class connection;
 
 class connection_delegate {
     public:
         virtual bool got_pdu(const shared_ptr<connection> & c, const string & b) = 0;
-        virtual ~connection_delegate() {}
+        virtual ~connection_delegate();
 };
 
 class connection : private aio_callback, public enable_shared_from_this<connection> {
@@ -28,7 +26,7 @@ class connection : private aio_callback, public enable_shared_from_this<connecti
 
         bool send(const string & b);
 
-        static shared_ptr<connection> to_dst(const sockaddr_in &dst, connection_delegate *mgr, int lossy=0);
+        static shared_ptr<connection> to_dst(const sockaddr_in & dst, connection_delegate *mgr, int lossy=0);
 
         const time_point<steady_clock> create_time = steady_clock::now();
         const file_t fd;