RdtInitStructServerTCP (STRUCT)¶
TYPE RdtInitStructServerTCP : STRUCT
Structurce for TCP server 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
iMaxConnectionsINTMax connection allowed
tTrsTimeoutTIMETransmission timeout
tRcvTimeoutTIMEReceiving timeout
tConnTimeoutTIMEConnection timeout
tWaitAfterResetTIMETime to wait after reset (see time above)
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
udiVerificationModeUDINT(2 + 4)
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