OpenTls Method

Overview

Type:

Method

Available as of:

V1.0.4.0

Task

Open the server socked using TLS (Transport Layer Security).

Functional Description

Opens the specified port using TLS (Transport Layer Security) and starts monitoring for incoming connections.

The BOOL return value is TRUE if the function was executed successfully. Evaluate the property Result, in case the return value is FALSE.

State Transition of the Server

Stage

Description

1

Initial state: Idle

2

Function call

3

State: Opening

4

Final state: Listening, otherwise an error is detected

Interface

Input

Data type

Valid range

Description

i_sInterfaceIP

STRING(15)

-

IP address of the interface to bind to. If null or 0.0.0.0, the server is available on all interfaces.

i_uiServerPort

UINT

1 ... 65535

TCP port to monitor on.

i_stTlsSettings

ST_TlsSettingsServer

-

TLS settings for the connection to be established by the FB_TCPServer2.

Used by

  • FB_TCPServer2