Skip to main content
Open topic with navigation CAPL Functions » TCP/IP API » OnUdpSendTo

OnUdpSendTo

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void OnUdpSendTo( dword socket, long result, char buffer[], dword size);

Method Syntax

Method Syntax
void OnUdpSendTo( UdpSocket socket, long result, char buffer[], dword size);

Description

If the CAPL program implements this callback it is called when an asynchronous send operation on an UDP socket completes.

Parameters

  • socket: The socket handle or socket object.
  • result: The result code of the asynchronous operation. If the operation completed successfully the value is 0. Otherwise the value is an error code.
  • buffer: The buffer provided with the send operation.
  • size: The number of bytes sent.

Return Values

Example

See example Create UDP Server Sockets. UdpSendTo