| 207 | } |
| 208 | |
| 209 | int SocketClientUDP::send (const char *data, int size) |
| 210 | { |
| 211 | int res = sendto (connect_socket, data, size, 0, (const struct sockaddr *)&socket_addr, |
| 212 | (int)sizeof (socket_addr)); |
| 213 | if (res == SOCKET_ERROR) |
| 214 | { |
| 215 | return -1; |
| 216 | } |
| 217 | return res; |
| 218 | } |
| 219 | |
| 220 | int SocketClientUDP::recv (void *data, int size) |
| 221 | { |
nothing calls this directly
no outgoing calls
no test coverage detected