Removal of old Network, added nonblocking set and async connect.

This commit is contained in:
Christoffer Lerno
2023-09-02 17:39:47 +02:00
parent e56313a204
commit a6cff5c2a5
9 changed files with 211 additions and 223 deletions

View File

@@ -6,6 +6,10 @@ extern fn WSAError win32_WSAGetLastError() @extern("WSAGetLastError") @builtin;
extern fn void win32_WSASetLastError(WSAError error) @extern("WSASetLastError") @builtin;
extern fn CInt win32_WSAStartup(Win32_WORD, void*) @extern("WSAStartup") @builtin;
const int FIONBIO = -2147195266;
const int FIONREAD = 1074030207;
const int SIOCATMARK = 1074033415;
module std::os::win32::wsa @if(env::WIN32);
const WSAError NO_ERROR = 0;