| 20 | namespace sockets { |
| 21 | |
| 22 | int last_socket_error() |
| 23 | { |
| 24 | #ifdef PLATFORM_WINDOWS |
| 25 | int error = WSAGetLastError(); |
| 26 | #else |
| 27 | int error = errno; |
| 28 | #endif |
| 29 | return error; |
| 30 | } |
| 31 | |
| 32 | void init(JNIEnv* ONLY_ON_WINDOWS(e)) |
| 33 | { |
no outgoing calls
no test coverage detected