| 304 | } |
| 305 | |
| 306 | uint32_t SocketImpl::write(const uint8_t* data, uint32_t length) |
| 307 | { |
| 308 | if(length == 0) |
| 309 | return 0; |
| 310 | |
| 311 | int sent = send(mSocket, reinterpret_cast<const char*>(data), int32_t(length), 0); |
| 312 | |
| 313 | if(sent <= 0 && !nonBlockingTimeout()) |
| 314 | disconnect(); |
| 315 | |
| 316 | return uint32_t(sent > 0 ? sent : 0); |
| 317 | } |
| 318 | |
| 319 | uint32_t SocketImpl::read(uint8_t* data, uint32_t length) |
| 320 | { |
nothing calls this directly
no test coverage detected