project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
branchios-revival
changeset 11107 553899c1ff78
parent 10108 c68cf030eded
child 11137 14f50dde3e8c
equal deleted inserted replaced
11106:2953f858a196 11107:553899c1ff78
   238         clientQuit = YES;
   238         clientQuit = YES;
   239     }
   239     }
   240 
   240 
   241     // Open a connection with the IP provided (listen on the host's port)
   241     // Open a connection with the IP provided (listen on the host's port)
   242     if (!(sd = SDLNet_TCP_Open(&ip)) && !clientQuit) {
   242     if (!(sd = SDLNet_TCP_Open(&ip)) && !clientQuit) {
   243         DLog(@"SDLNet_TCP_Open: %s %\n", SDLNet_GetError(), self.enginePort);
   243         DLog(@"SDLNet_TCP_Open: %s %d\n", SDLNet_GetError(), self.enginePort);
   244         clientQuit = YES;
   244         clientQuit = YES;
   245     }
   245     }
   246 
   246 
   247     DLog(@"Waiting for a client on port %d", self.enginePort);
   247     DLog(@"Waiting for a client on port %d", self.enginePort);
   248     while (csd == NULL)
   248     while (csd == NULL)