equal
deleted
inserted
replaced
56 } |
56 } |
57 |
57 |
58 #pragma mark - |
58 #pragma mark - |
59 #pragma mark preview |
59 #pragma mark preview |
60 -(int) sendToEngine:(NSString *)string { |
60 -(int) sendToEngine:(NSString *)string { |
61 unsigned char length = [string length]; |
61 unsigned char length = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; |
62 |
62 |
63 SDLNet_TCP_Send(csd, &length, 1); |
63 SDLNet_TCP_Send(csd, &length, 1); |
64 return SDLNet_TCP_Send(csd, [string UTF8String], length); |
64 return SDLNet_TCP_Send(csd, [string UTF8String], length); |
65 } |
65 } |
66 |
66 |