CmpTlsAccept
(FUN)
FUNCTION CmpTlsAccept : RTS_IEC_RESULT
Starts handshaking on the server side. The client has to initiate the handshaking. This is the first function call on the serverside after establishing the unterlaying connection. Data has to be received first. This function will is likley to read and write data.
- InOut:
Scope
Name
Type
Comment
Return
CmpTlsAccept
RTS_IEC_RESULT
- Result of this operation. May be one of these values:
ERR_OK: No error. Everything worked as expected.
ERR_NOTINITIALIZED: The TLS component was not initialized proberly.
ERR_TLS_CONNECTION_CLOSED: The TLS connection is closed. Use TlsShutdown to shutdown locally.
ERR_TLS_WANT_READ: The operation needs TO read data FROM the IO system. There is no data available.
- ERR_TLS_WANT_WRITE: The operation needs to write data to the IO system. This is not possible.
ERR_TLS_RETRY_OPERATION: Something went wrong. Try the same function call again
ERR_TLS_IO_SYSTEM: An error in the unterlaying IO system.
ERR_TLS_INTERNAL: An internal Error of the TLS Component
ERR_FAILED: Unknown error.
Input
hTlsConn
RTS_IEC_HANDLE
Handle of the TLS connection, created with one of the TLSxxxOpen functions