108
109
//NSLog(@"receiving...");
109
110
if (!expectedMessageSize)
114
actuallyRead = recv(socket, &buf, sizeof(uint32_t), MSG_PEEK);
115
actuallyRead = recv(socket, header, 8, MSG_PEEK);
118
actuallyRead = recv(socket, &buf, sizeof(uint32_t), 0);
119
actuallyRead = recv(socket, header, 8, 0);
120
122
currentData = [[NSMutableData alloc] initWithLength: expectedMessageSize];
122
124
else if (actuallyRead == -1)