Implemented NetDll_shutdown.

De-borked LoadFdset/StoreFdset in regards to handling of correct counts
and invalid sockets.
This commit is contained in:
gibbed
2017-01-09 06:56:35 -06:00
parent f3ed9ab91b
commit 2e8c34377f
4 changed files with 44 additions and 15 deletions

View File

@@ -150,6 +150,8 @@ object_ref<XSocket> XSocket::Accept(N_XSOCKADDR* name, int* name_len) {
return socket;
}
int XSocket::Shutdown(int how) { return shutdown(native_handle_, how); }
int XSocket::Recv(uint8_t* buf, uint32_t buf_len, uint32_t flags) {
return recv(native_handle_, reinterpret_cast<char*>(buf), buf_len, flags);
}