convert server::flush_queue to a member function
transform server::auto_reconnect to a member function