# null

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

## IP\_Endpoint::SetTransportProtocolToUnknown

[CAPL Functions](../../CAPLfunctions.md) » [Ethernet](../CAPLEthernetStartPage.md) » [Function Overview](../CAPLfunctionsIPOverview.md) » IP\_Endpoint::SetTransportProtocolToUnknown

**Valid for:** CANoe DE • CANoe4SW DE

### Method Syntax

```plaintext
long IP_Endpoint::SetTransportProtocolToUnknown();
```

### Description

Invalidates the transport protocol.

### Parameters

—

### Return Values

* **0**: Success

### Example

```plaintext
on start
{
  IP_Endpoint UDP:192.168.1.1:4000 addr;
  addr.SetTransportProtocolToUnknown();
  if (addr.IsTCP())
  {
    write( "Is TCP endpoint" );
  }
  else if (addr.IsUDP())
  {
    write( "Is UDP endpoint" );
  }
  else
  {
    write( "No transport protocol specified for endpoint" );
  }
}
```
