| 314 | } |
| 315 | |
| 316 | int doRead(int fd, void* buffer, size_t count) |
| 317 | { |
| 318 | #ifdef PLATFORM_WINDOWS |
| 319 | return recv(fd, static_cast<char*>(buffer), count, 0); |
| 320 | #else |
| 321 | return read(fd, buffer, count); |
| 322 | #endif |
| 323 | } |
| 324 | |
| 325 | int doRecv(int fd, void* buffer, size_t count, int32_t* host, int32_t* port) |
| 326 | { |
no test coverage detected