Skip to main content
Open topic with navigation

IP_Endpoint::IsUDP

CAPL Functions » Ethernet » Function Overview » IP_Endpoint::IsUDP Valid for: CANoe DE • CANoe4SW DE

Method Syntax

Method Syntax
long IP_Endpoint::IsUDP();

Description

Checks if the current transport protocol of this endpoint is UDP.

Parameters

Return Values

Returns 1 if the current transport protocol of this endpoint is UDP.

Example

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