equal
deleted
inserted
replaced
80 [message release]; |
80 [message release]; |
81 return result; |
81 return result; |
82 } |
82 } |
83 |
83 |
84 -(void) serverProtocol { |
84 -(void) serverProtocol { |
85 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
85 @autoreleasepool { |
|
86 |
86 IPaddress ip; |
87 IPaddress ip; |
87 BOOL clientQuit = NO; |
88 BOOL clientQuit = NO; |
88 char *buffer = (char *)malloc(sizeof(char)*BUFFER_SIZE); |
89 char *buffer = (char *)malloc(sizeof(char)*BUFFER_SIZE); |
89 int dim = BUFFER_SIZE; |
90 int dim = BUFFER_SIZE; |
90 uint8_t msgSize; |
91 uint8_t msgSize; |
204 |
205 |
205 free(buffer); |
206 free(buffer); |
206 SDLNet_TCP_Close(self.ssd); |
207 SDLNet_TCP_Close(self.ssd); |
207 SDLNet_Quit(); |
208 SDLNet_Quit(); |
208 |
209 |
209 [pool release]; |
210 } |
210 } |
211 } |
211 |
212 |
212 @end |
213 @end |