# null

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

# IP\_Endpoint::IsTCP

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

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

## Method Syntax

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

## Description

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

## Parameters

—

## Return Values

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

## Example

```plaintext
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" );
  }
}
```
