if (debug >= 3) {
if (debug >= DEBUG_HIGH) {
int init_connection (char *hostname, short unsigned int port) {  IPaddress ipad;  /* initialize the SDLNet library */  if (SDLNet_Init () == -1) {    log_error ("Failed to initialize SDL_net: %s\n", SDLNet_GetError());    return EXIT_SDL_QUIT;  }  if (debug >= 3) {    log_info ("SDL network library succesfully initialized\n");  }  /* resolve server IP address */  if (SDLNet_ResolveHost (&ipad, hostname, port) == -1) {    log_error ("Cannot resolve host %s: %s\n", hostname,              SDLNet_GetError());    return EXIT_SDLNET_QUIT;  }  if (debug >=3) {  	log_info ("Resolved IP address: %u.%u.%u.%u\n", ipad.host & 0xff,        	    (ipad.host >> 8) & 0xff, (ipad.host >> 16) & 0xff,            	ipad.host >> 24);  }    /* try to connect to game server */  thesock = SDLNet_TCP_Open (&ipad);  if (thesock == NULL) {    log_error ("Unable to connect to the game server: %s\n",              SDLNet_GetError ());    return EXIT_SDLNET_QUIT;  }  if (debug >= 3) {  	log_info ("Connected to game server %s\n", hostname);  }  /* allocate a set for only one socket */  theset = SDLNet_AllocSocketSet (1);  if (theset == NULL) {    log_error ("Cannot allocate socket set: %s\n", SDLNet_GetError ());    return EXIT_CLOSE_SOCKET;  }  /* And add the socket */  if (SDLNet_TCP_AddSocket (theset, thesock) == -1) {    log_error ("Cannot add socket to set: %s\n", SDLNet_GetError ());    return EXIT_FREE_SET;  }  if (debug >=3) {  	log_info ("Socket added to socket set\n");  }  buf_in_use = 0;  return 0;}