ET_State

Overview

Type:

Enumeration

Available as of:

V1.0.4.0

Description

The enumeration ET_State contains the possible values that indicate the state of the function blocks.

Enumeration Elements

Name

Value

Description

Idle

0

Default state, ready for Connect and ConnectTls (FB_TCPClient/FB_TCPClient2) or Open and OpenTls (FB_TCPServer/FB_TCPServer2 and FB_UDPPeer).

Connecting

10

The attempt to establish a connection has been started but no result is available yet.

Connected

11

The connection has been established successfully and data transfer is possible.

Shutdown

12

The connection has been closed by the remote site and no more data can be sent.

Listening

20

The server has been started successfully and is waiting for incoming connections.

Accepting

22

The attempt to accept an incoming connection for the server is in progress.

Closing

24

Closing of the socket is in progress.

Opened

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.

Bound

31

The UDP socket has been bound to a local port. Messages can be sent and received.

Used By

  • FB_TCPClient/FB_TCPClient2

  • FB_TCPServer/FB_TCPServer2

  • FB_UDPPeer

  • FC_EtStateToString