mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Cleanup
This commit is contained in:
parent
bda5f560eb
commit
4cd58262e4
1 changed files with 14 additions and 14 deletions
|
@ -5,12 +5,9 @@ namespace System.Net
|
||||||
{
|
{
|
||||||
class Socket
|
class Socket
|
||||||
{
|
{
|
||||||
//#define WSADESCRIPTION_LEN 256
|
const int32 WSAENETRESET = 10052;
|
||||||
//#define WSASYS_STATUS_LEN 128
|
|
||||||
|
|
||||||
const int32 WSAENETRESET = 10052;
|
|
||||||
const int32 WSAECONNABORTED = 10053;
|
const int32 WSAECONNABORTED = 10053;
|
||||||
const int32 WSAECONNRESET = 10054;
|
const int32 WSAECONNRESET = 10054;
|
||||||
|
|
||||||
public struct HSocket : uint
|
public struct HSocket : uint
|
||||||
{
|
{
|
||||||
|
@ -48,25 +45,28 @@ namespace System.Net
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if BF_PLATFORM_WINDOWS
|
||||||
[CRepr]
|
[CRepr]
|
||||||
struct WSAData
|
struct WSAData
|
||||||
{
|
{
|
||||||
public uint16 wVersion;
|
public uint16 wVersion;
|
||||||
public uint16 wHighVersion;
|
public uint16 wHighVersion;
|
||||||
//#ifdef _WIN64
|
#if BF_64_BIT
|
||||||
public uint16 iMaxSockets;
|
public uint16 iMaxSockets;
|
||||||
public uint16 iMaxUdpDg;
|
public uint16 iMaxUdpDg;
|
||||||
public char8* lpVendorInfo;
|
public char8* lpVendorInfo;
|
||||||
public char8[256+1] szDescription;
|
public char8[256+1] szDescription;
|
||||||
public char8[128+1] szSystemStatus;
|
public char8[128+1] szSystemStatus;
|
||||||
//#else
|
#else
|
||||||
/*char szDescription[WSADESCRIPTION_LEN+1];
|
char8[256+1] szDescription;
|
||||||
char szSystemStatus[WSASYS_STATUS_LEN+1];
|
char8[128+1] szSystemStatus;
|
||||||
unsigned short iMaxSockets;
|
uint16 iMaxSockets;
|
||||||
unsigned short iMaxUdpDg;
|
uint16 iMaxUdpDg;
|
||||||
char FAR * lpVendorInfo;*/
|
char8* lpVendorInfo;
|
||||||
//#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
[CRepr]
|
[CRepr]
|
||||||
struct in_addr
|
struct in_addr
|
||||||
{
|
{
|
||||||
|
@ -180,7 +180,7 @@ namespace System.Net
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
#if BF_PLATFORM_WINDOWS
|
#if BF_PLATFORM_WINDOWS
|
||||||
WSAData wsaData = default(WSAData);
|
WSAData wsaData = default;
|
||||||
WSAStartup(0x202, &wsaData);
|
WSAStartup(0x202, &wsaData);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue