|
Defines |
| #define | logMsg printf |
| #define | INVALID_SOCKET (-1) |
| #define | ERROR (-1) |
Functions |
| socket_Error_t | modtcpsocketCreate (char *name, int tcpPort, char *inet_address) |
| | Adds a new socket connection description to an internal linked list.
|
| SOCKET_ID | modtcpsocketOpen (char *name) |
| | Returns the ID for the given socket ID device.
|
| int | modtcpSocketReport () |
| | Lists all sockets and their information.
|
| void | modtcpPrint (char *prefix, char *data, int len) |
| | Utility tool to display data packet to or from PLC.
|
| int | modtcpConnect (SOCKET_ID pSock) |
| | Creates the socket connection to the PLC using the predefined socket structure.
|
| int | modtcpSend (SOCKET_ID pSock, char *request, int len) |
| | Writes the passed string to the specified socket.
|
| int | modtcpRcv (SOCKET_ID pSock, char *response) |
| | Reads the response from the specified socket.
|
| void | modtcpDisconnect (SOCKET_ID pSock) |
| | Closes the connection of the passed socket structure.
|
Variables |
| int | modtcpDebug = 0 |
| SOCKET_ID | pFirst = NULL |