RdtInitStructClientTCP (STRUCT)¶
TYPE RdtInitStructClientTCP : STRUCT
Structurce for TCP client initialization
- InOut:
Name
Type
Initial
Comment
sNameSTRINGName of the client, the name can be completely user defined
sIPAddressSTRINGIpAdd of the server to connect with
uiPortUINTPort of the server to connect with
tTrsTimeoutTIMETransmission timeout
tRcvTimeoutTIMEReceiving timeout
tConnActTimeoutTIMEConnection active timeout
xUseTLSBOOLIf the TLS encryption is used or not
xUseCertBOOLIf the certificate is used or not
sCertCommonNameSTRINGA string to select the correct certificate in local certificate store,
hCertRTS_IEC_HANDLERTS_INVALID_HANDLE
External cert handle to use. Exclusive use vs cert name
udiVerificationModeUDINT2
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
sTLSVersionSTRING‘1.2’
A string to select the correct protocol version, e.g.: ‘1.1’, ‘1.2’,
sHostnameSTRING‘’
A hostname to select the correct certificate on the server side.
sCipherSTRING‘HIGH’
The cipher strings. See for example: https://www.openssl.org/docs/man1.1.1/man1/ciphers.html#CIPHER- LIST-FORMAT
itfCertVeriferNBS.ICertificateVerifier0
A callback for application specific certificate verification