Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
OnTlsEarlyDataReceived
Valid for: CANoe DEFunction Syntax
Description
To handle early data from the TLS 1.3 client, the CAPL server program must implement this callback. It is called with the decrypted early data when early data is received and accepted during a TLS 1.3 handshake. To enable the server to send data to the unauthenticated client, before the handshake is completed, one should set the TCP_NODELAY option on the corresponding socket to 1, to disable Nagle’s algorithm (see code example). It can be reactivated after the handshake, e.g. within the OnTlsHandshakeComplete callback. As an alternative to the CAPL code, one can disable Tcp Delayed Acknowledge activated in the TCP/IP Stack settings.Parameters
- socket: The TLS socket handle.
- buffer: The buffer containing the received decrypted early data.
- size: The size of the received data.