| 67 | |
| 68 | |
| 69 | long Read(Socket s, void* buf, size_t len) |
| 70 | { |
| 71 | #if defined(__unix__) || defined(__APPLE__) |
| 72 | return read(s, buf, len); |
| 73 | #elif defined(_MSC_VER) || defined(__MINGW32__) |
| 74 | return recv(s, static_cast<char*>(buf), static_cast<int>(len), 0); |
| 75 | #endif |
| 76 | } |
| 77 | |
| 78 | int Ioctl(Socket s, unsigned long int cmd, void* arg) |
| 79 | { |
no outgoing calls
no test coverage detected