RdtInitStructServerTCP (STRUCT)¶
TYPE RdtInitStructServerTCP : STRUCT
Structurce for TCP server 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 - iMaxConnections- INT- Max connection allowed - tTrsTimeout- TIME- Transmission timeout - tRcvTimeout- TIME- Receiving timeout - tConnTimeout- TIME- Connection timeout - tWaitAfterReset- TIME- Time to wait after reset (see time above) - 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 + 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 - 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 
