EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

OpenTls Method

Overview

Type:

Method

Available as of:

V1.0.4.0

G-SE-0076203.1.gif-high.gif

 

 

Task

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

Functional Description

Opens the specified port using TLS (Transport Layer Security) and starts listening 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 listen on.

i_stTlsSettings

ST_TlsSettingsServer

-

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

Used by

oFB_TCPServer2