RdtInitStructClientTCP (STRUCT)

TYPE RdtInitStructClientTCP : STRUCT

Structurce for TCP client initialization

InOut:

Name

Type

Initial

Comment

sName

STRING

Name of the client, the name can be completely user defined

sIPAddress

STRING

IpAdd of the server to connect with

uiPort

UINT

Port of the server to connect with

tTrsTimeout

TIME

Transmission timeout

tRcvTimeout

TIME

Receiving timeout

tConnActTimeout

TIME

Connection active timeout

xUseTLS

BOOL

If the TLS encryption is used or not

xUseCert

BOOL

If the certificate is used or not

sCertCommonName

STRING

A string to select the correct certificate in local certificate store,

hCert

RTS_IEC_HANDLE

RTS_INVALID_HANDLE

External cert handle to use. Exclusive use vs cert name

udiVerificationMode

UDINT

2

1 => No peer verification 2 => Active Peer verification (4) => 2+4 = 6 => Force termination, if no client certificate (8) => 2+8=10 or 2+4+8 = 14 => Request client certificate only whithin initial handshake

sTLSVersion

STRING

‘1.2’

A string to select the correct protocol version, e.g.: ‘1.1’, ‘1.2’,

sHostname

STRING

‘’

A hostname to select the correct certificate on the server side.

sCipher

STRING

‘HIGH’

The cipher strings. See for example: https://www.openssl.org/docs/man1.1.1/man1/ciphers.html #CIPHER-LIST-FORMAT

itfCertVerifer

NBS.ICertificateVerifier

0

A callback for application specific certificate verification