void start_autoconnecting_to_server(void)
int connect_to_server(const char *username, const char *hostname, int port, char *errbuf, int errbufsize)
void disconnect_from_server(bool leaving_sound)
double try_to_autoconnect(void)
void input_from_server_till_request_got_processed(int fd, int expected_request_id)
void input_from_server(int fd)
void make_connection(int socket, const char *username)