Skip to main content

OnDtlsServerConnect

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

If the CAPL program implements this callback it is called on the DTLS server side when a DTLS client begins its TLS handshake. When a DTLS client begins its handshake the server calls internally UdpConnect on the listening socket. After the socket is connected to the clients address the callback gets called to inform the user that a new socket for incoming DTLS connections has to be created.

Parameters

  • socket: The socket which is now connected to the client.
  • endpoint: The address and port to which this socket is now connected.
  • result: The result of the internal call to UdpConnect.

Return Values

Example

dtlsClient.can

dtlsServer.can