Skip to main content
Open topic with navigation CAPL Functions » Ethernet » Function Overview » IP_Endpoint::SetToUDP

IP_Endpoint::SetToUDP

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

long IP_Endpoint::SetToUDP();

Description

Sets the transport protocol to UDP.

Parameters

Return Values

  • 0: Success

Example

on start
{
  IP_Endpoint 192.168.1.1:4000 addr;
  addr.SetToUDP();
  if (addr.IsUDP())
  {
    write("Is UDP endpoint");
  }
}