1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Merge pull request #333 from TheRawMeatball/master

Fix for #332
This commit is contained in:
Brian Fiete 2020-06-06 04:53:16 -07:00 committed by GitHub
commit 29dd6c832d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,12 +109,17 @@ namespace System.Net
public char8** h_addr_list; /* list of addresses */
}
const HSocket INVALID_SOCKET = (HSocket)-1;
const HSocket INVALID_SOCKET = (HSocket)0xffffffff;
const int32 SOCKET_ERROR = -1;
const int AF_INET = 2;
const int SOCK_STREAM = 1;
const int IPPROTO_TCP = 6;
#if BF_PLATFORM_WINDOWS
const int FIONBIO = (int)0x8004667e;
#else
const int FIONBIO = (int)0x00005421;
#endif
HSocket mHandle = INVALID_SOCKET;
bool mIsConnected = true;