sockConnection (Functionblock) |
Top Previous Next |
This function block returns the current status of a connection initiated by using either the sockConnect() or sockListen() function.
Input: id : SINT ID of the connection.
Output: Changed : BOOL Connection info has changed.
Connected : BOOL True if connected, false if disconnected.
localport : DINT Local port number.
remoteip : DINT IP address of peer.
remoteport : DINT Port number of peer.
iface : SINT The network interface used by the connection. 0 = Not Available, 1 = Mobile network, 2 = LAN network, etc. (See Network)
Declaration: FUNCTION_BLOCK sockConnection;
Example:
|