| 351 | } |
| 352 | |
| 353 | int doSend(int fd, sockaddr_in* address, const void* buffer, size_t count) |
| 354 | { |
| 355 | return sendto(fd, |
| 356 | static_cast<const char*>(buffer), |
| 357 | count, |
| 358 | 0, |
| 359 | reinterpret_cast<sockaddr*>(address), |
| 360 | sizeof(sockaddr_in)); |
| 361 | } |
| 362 | |
| 363 | int makeSocket(JNIEnv* e, int type = SOCK_STREAM, int protocol = IPPROTO_TCP) |
| 364 | { |
no outgoing calls
no test coverage detected