1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Merge pull request #1936 from disarray2077/patch-2

Fix Socket constants on Linux
This commit is contained in:
Brian Fiete 2024-02-18 19:39:11 +01:00 committed by GitHub
commit 157db762f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,9 +166,15 @@ namespace System.Net
public const int SOCK_DGRAM = 2;
public const int IPPROTO_TCP = 6;
public const int IPPROTO_UDP = 17;
#if BF_PLATFORM_WINDOWS
public const int SOL_SOCKET = 0xffff;
public const int SO_REUSEADDR = 0x0004;
public const int SO_BROADCAST = 0x0020;
public const int SO_BROADCAST = 0x0020;
#else
public const int SOL_SOCKET = 1;
public const int SO_REUSEADDR = 2;
public const int SO_BROADCAST = 6;
#endif
public const IPv4Address INADDR_ANY = default;
#if BF_PLATFORM_WINDOWS
@ -618,4 +624,4 @@ namespace System.Net
return .Ok;
}
}
}
}