server *my_server;
server_connection(int _timeout);
+ virtual ~server_connection();
std::ostream* get_logstream(log_level_values level);
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);
@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();