FB_SocketConnectionSettingsClass

FB_SocketConnectionSettingsClass 1:

The function block FB_SocketConnectionSettingsClass is used to configure the TCP/IP communication layer. The configuration settings only apply to a selected server session function block instance.

Namespace: Tc3_Sockets
Library: Tc3_Sockets (Tc3_Sockets.compiled-library)

Inheritance hierarchy

FB_SocketConnectionSettingsClass

FUNCTION_BLOCK FB_SocketConnectionSettingsClass IMPLEMENTS I_SocketConnectionSettingsClass

FB_SocketConnectionSettingsClass 2: Interfaces

Type

Description

I_SocketConnectionSettingsClass

Interface for configuring the TCP/IP communication layer.

FB_SocketConnectionSettingsClass 3: Methods

Name

Description

Defaults

Resets the configuration settings to the default values.

FB_SocketConnectionSettingsClass 4: Properties

Name

Type

Access

Definition location

Initial value

Description

bEnable

BOOL

Get

I_SocketConnectionSettingsClass

FALSE

Enables/disables the establishment of the incoming connection in a server session function block instance.

Set

Local

bTrace

BOOL

Get

I_SocketConnectionSettingsClass

TRUE

Enables/disables the logging of error messages and log messages in a server session function block instance.

Set

Local

eAccept

E_SocketAcceptMode

Get

I_SocketConnectionSettingsClass

E_SocketAcceptMode.eACCEPT_ALL

Configures the acceptance mode for incoming connections. The incoming connections can be accepted or rejected by a session function block instance depending on the network address and/or port number of the client. By default, connections to all clients are accepted.

Set

Local

nAcceptPort

UDINT

Get

I_SocketConnectionSettingsClass

102

Configures the TCP/IP port number of the remote communication partner (clients) to be accepted.

Set

Local

sAcceptHost

T_IPv4Addr

Get

I_SocketConnectionSettingsClass

‘127.0.0.1‘

Configures the IPv4 network address of the remote communication partner (clients) to be accepted.

Set

Local