# null

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/IP/Methods/CAPLfunctionSetToUDP.md)

**CAPL Functions** » **Ethernet** » **Function Overview** » **IP\_Endpoint::SetToUDP**

# IP\_Endpoint::SetToUDP

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE • CANoe4SW DE

## Method Syntax

long [IP\_Endpoint](../Objects/CAPLfunctionIPEndpoint.md)::SetToUDP();

## Description

Sets the transport protocol to UDP.

## Parameters

—

## Return Values

* **0**: Success

## Example

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