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

OnIpSendPrepare

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

If the CAPL program implements this callback it is called right before a packet will be sent by the TCP/IP stack. It is possible to manipulate the content of the packet or to block the sending of the package on the bus. Note: The callback is only available for simulation nodes using the individual TCP/IP stack instance. Check this setting in the TCP/IP Stack configuration dialog.

Parameters

  • socket: The socket handle.
  • packet: The Ethernet packet which will be sent.

Return Values

  • 0: Block the Ethernet packet.
  • 1: Send the Ethernet packet.

Example