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);
*/
virtual bool fill_buffer(long long usec_timeout=-1, long long* usec_timeout_remaining=NULL)=0;
+ void close();
+
void cleanup();
/** @brief get a complete data packet from any client. The packet is removed from the