Changed one more homepage link
[libt2n] / src / server.hxx
index aa0b232..738a869 100644 (file)
@@ -60,6 +60,7 @@ class server_connection : public connection
         server *my_server;
 
         server_connection(int _timeout);
+        virtual ~server_connection();
 
         std::ostream* get_logstream(log_level_values level);
 
@@ -100,7 +101,7 @@ class server
 
         virtual bool fill_connection_buffers(void)=0;
 
-        int add_connection(server_connection* newconn);
+        unsigned int add_connection(server_connection* newconn);
 
         void do_callbacks(callback_event_type event, unsigned int conn_id);
 
@@ -130,7 +131,9 @@ class server
             @retval true if new data was found (does not mean that the received data 
                     is a complete packet though)
         */
-        virtual bool fill_buffer(long long usec_timeout=-1, long long* timeout_remaining=NULL)=0;
+        virtual bool fill_buffer(long long usec_timeout=-1, long long* usec_timeout_remaining=NULL)=0;
+
+        void close();
 
         void cleanup();