Rev 3090 | Rev 4530 | ||
---|---|---|---|
Line 254... | Line 254... | ||
254 | } |
254 | } |
255 | |
255 | |
256 | // Read Length (in bits, 32bit integer) |
256 | // Read Length (in bits, 32bit integer) |
257 | int len; |
257 | int len; |
258 | |
258 | |
259 | iResult = recv(ClientSocket, (char *)&len, 4, 0); // pøepsat pøenositelnì |
259 | iResult = recv(ClientSocket, (char *)&len, 4, 0); // TODO: rewrite for multiplatform use |
260 | if (iResult==0) |
260 | if (iResult==0) |
261 | { |
261 | { |
262 | printf("\n Connection Closed\n\n"); |
262 | printf("\n Connection Closed\n\n"); |
263 | return -1; |
263 | return -1; |
264 | } |
264 | } |