Skip to main content

DoIP_UDPSendPort

Valid for: CANoe DE

DoIP_UDPSendPort (raw)

Note
The following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

Function Syntax

Description

Send given raw data to peer(s) as UDP frame.

Parameters

  • IPaddress: Send to this address, may be a broadcast address.
  • port: Destination port for the UDP packet.
  • data: The UDP payload, i.e. it must contain a DoIP header if the peer shall recognize it as such.
  • length: Payload length

Return Values

Error code

Example

DoIP_UDPSendPort (PDU)

Note
The following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

Function Syntax

Description

Sends a DoIP PDU with valid layout to peer(s) as UDP frame. The configured DoIP version is used.

Parameters

  • IPaddress: Send to this address, may be a broadcast address.
  • port: Destination port for the UDP packet.
  • payloadType: Type to send, i.e. this can be any value. [0; 0xFFFF]
  • payload: The data following the generic DoIP header.
  • payloadLen: Payload length.

Return Values

Error code

Example

DoIP_UDPSendDoIP_TCPSend