ST_DefaultSocketOptionsTCPServer

Overview

Type:

Structure

Available as of:

V1.0.8.0

Inherits from:

-

Description

The structure ST_DefaultSocketOptionsTCPServer contains information about which socket options should be automatically set or modified when a new server instance is opened.

Structure Elements

Name

Data type

Default value

Description

xModifyKeepAlive

BOOL

TRUE

If TRUE, sets the socket option KeepAlive to the value of xKeepAliveValue.

xKeepAliveValue

BOOL

TRUE

Value to set socket option KeepAlive to.

xModifyReuseAddress

BOOL

TRUE

If TRUE, sets the socket option ReuseAddress to the value of xReuseAddressValue.

xReuseAddressValue

BOOL

TRUE

Value to set socket option ReuseAddress to.

xModifySendBufferSize

BOOL

FALSE

If TRUE, sets the socket option SendBufferSize to the value of udiSendBufferSizeValue.

udiSendBufferSizeValue

UDINT

10000

Value to set socket option SendBufferSize to.

xModifyReceiveBufferSize

BOOL

FALSE

If TRUE, sets the socket option ReceiveBufferSize to the value of udiReceiveBufferSizeValue.

udiReceiveBufferSizeValue

UDINT

10000

Value to set socket option ReceiveBufferSize to.

xModifyTimeoutAcceptTls

BOOL

FALSE

If TRUE, sets the corresponding socket option TimeoutAcceptTls to the value of uiTimeoutAcceptTlsValue.

timTimeoutAcceptTlsValue

TIME

T#30s

Timeout for accepting an incoming connection using the method Accept on ports opened with method OpenTls.

xModifyLinger

BOOL

TRUE

If TRUE, sets the socket option LingerEnabled to the value of xLingerValue.

xLingerValue

BOOL

TRUE

Value to set socket option So_Linger to.

Used By

  • FB_TCPServer/FB_TCPServer2