Bachelorthesis/Modbus-CAPL/include/CAPL/include/TcpUdpEilCommon.cin
2014-06-20 10:45:41 +00:00

24 lines
569 B
Plaintext

/*@!Encoding:1252*/
variables
{
// Some constants
const long WSA_IO_PENDING = 997;
const long WSAEWOULDBLOCK = 10035;
const dword INVALID_IP = 0xffffffff;
long gIpLastErr = 0;
char gIpLastErrStr[512] = "";
// The state of the socket will be safed here. This way we can check if we can send/receive packets
enum SocketState { NULL, OK, ERROR, CLOSED };
enum SocketState gSocketState = NULL;
dword gRemoteIP = INVALID_IP;
word gRemotePort = 0;
// The buffer where to received telegrams are put
byte gRxBuffer[8192];
}