| 269 | } |
| 270 | |
| 271 | static int SocketSend(BrynetSocketFD fd, const char* buffer, int len) |
| 272 | { |
| 273 | int transnum = ::send(fd, buffer, len, 0); |
| 274 | if (transnum < 0 && BRYNET_EWOULDBLOCK == BRYNET_ERRNO) |
| 275 | { |
| 276 | transnum = 0; |
| 277 | } |
| 278 | |
| 279 | /* send error if transnum < 0 */ |
| 280 | return transnum; |
| 281 | } |
| 282 | |
| 283 | static BrynetSocketFD Accept(BrynetSocketFD listenSocket, struct sockaddr* addr, socklen_t* addrLen) |
| 284 | { |
nothing calls this directly
no outgoing calls
no test coverage detected