20 lines
396 B
Text
20 lines
396 B
Text
/*@!Encoding:1252*/
|
|
|
|
variables
|
|
{
|
|
const long WSA_IO_PENDING = 997;
|
|
const long WSAEWOULDBLOCK = 10035;
|
|
const dword INVALID_IP = 0xffffffff;
|
|
|
|
long gIpLastErr = 0;
|
|
char gIpLastErrStr[512] = "";
|
|
|
|
enum SocketState { NULL, OK, ERROR, CLOSED };
|
|
enum SocketState gSocketState = NULL;
|
|
|
|
dword gRemoteIP = INVALID_IP;
|
|
word gRemotePort = 0;
|
|
|
|
byte gRxBuffer[8192];
|
|
}
|
|
|