关于WSADATA
TWSAData = packed record
wVersion: Word;
wHighVersion: Word;
szDescription: array[0..WSADESCRIPTION_LEN] of Char;
szSystemStatus: array[0..WSASYS_STATUS_LEN] of Char;
iMaxSockets: Word;
iMaxUdpDg: Word;
lpVendorInfo: PChar;
end;
wVersion中存放的是Windows Sockets DLL期望程序使用的版本号;wHighVersion是Windows Sockets DLL所支持的最高版本号,一般情况下,wHighVersion等于wVersion;
szDescription是一个以’