| 218 | } |
| 219 | |
| 220 | int SocketClientUDP::recv (void *data, int size) |
| 221 | { |
| 222 | int res = recvfrom (connect_socket, (char *)data, size, 0, NULL, 0); |
| 223 | if (res == SOCKET_ERROR) |
| 224 | { |
| 225 | return -1; |
| 226 | } |
| 227 | return res; |
| 228 | } |
| 229 | |
| 230 | void SocketClientUDP::close () |
| 231 | { |
nothing calls this directly
no outgoing calls
no test coverage detected