The enumeration ET_State contains the possible values that indicate the state of the function blocks.
Name |
Value |
Description |
---|---|---|
0 |
Default state, ready for Connect and ConnectTls (FB_TCPClient/FB_TCPClient2) or Open and OpenTls (FB_TCPServer/FB_TCPServer2 and FB_UDPPeer). |
|
10 |
The attempt to establish a connection has been started but no result is available yet. |
|
11 |
The connection has been established successfully and data transfer is possible. |
|
12 |
The connection has been closed by the remote site and no more data can be sent. |
|
20 |
The server has been started successfully and is waiting for incoming connections. |
|
22 |
The attempt to accept an incoming connection for the server is in progress. |
|
24 |
Closing of the socket is in progress. |
|
30 |
The UDP socket has been opened but is not yet bound to a local port. Sending of messages or binding it to a port is possible. |
|
31 |
The UDP socket has been bound to a local port. Messages can be sent and received. |