> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ansys::dpf::Client Class Reference

`#include <dpf_api_base.h>`

Inheritance diagram for ansys::dpf::Client:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=2c8cb272f504d2f1f46ddcbd72ebc5ea)

## Public Member Functions

| Type | Name |
| - | - |
| | [Client](#ab848ac7d438cfdbac21b5c634771e5eb) (std::string const \&ip, std::string const \&port) |
| | [Client](#a53ac66c262ddb2e4485b6590ddbe4ce6) (std::string const \&ip, std::string const \&port, [LibraryHandle](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LibraryHandle.md) const \&library\_handle) |
| | [Client](#a2ffa309b414af2d3c89d24e8fb1b292d) (std::string const \&address) |
| | [Client](#a13b12680853a5cd3d21ef45ebc8ff3cf) (std::string const \&address, [LibraryHandle](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LibraryHandle.md) const \&library\_handle) |
| | **Client** ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const &) |
| | **Client** ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) &&) noexcept |
| [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) & | **operator=** ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const &) |
| [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) & | **operator=** ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) &&) noexcept |
|  opaque::DpfObject \*& | **internalObj** () |
|  opaque::DpfObject \*const | **internalObj** () const |
| std::string | [getChannelAddress](#ac4d7086213dd34ecb5d83723b85a6a2c) () const |
| std::string | [getProtocolName](#a7bb04a2b5cb70a3d2439a1e31d209dbc) () const |
|  so::API const \* | **callAPI** () const |

> [accordion] Public Member Functions inherited from ansys::dpf::DpfTypes
>
> Public Member Functions inherited from [ansys::dpf::DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md)
>
> | Type | Name |
> | - | - |
> | virtual bool | [empty](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a39cd546c42518e2332be8f287db95459) () const |
> | virtual bool | [hasInternalObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#ae198f89868d85c7db6dc1a934a1d3c15) () const |
> | virtual std::string | [describe](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a9977945710983bc03d2940fa007847b2) () const |
> | so::API const \* | [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#aea34d37e0c080126eff70db34bf46597) () const |
> | bool | [isOnCommonAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a9f9789ff61cc9d400a2a344830706b73) () const |
> | bool | [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) \&client) const |
> | bool | [hasBeenMovedLocally](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a1a5634202c15404b6b24e8f50e51cb66) () const |
> | bool | [isSameObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md) const \&rhs) const |

## Static Public Member Functions

| Type | Name |
| - | - |
| static [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) | [emptyClient](#a92c3f1e9c2cdfa589372253103065f73) () |

## Detailed Description

[Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) for remote DPF connection. A [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance is always associated to a DPF server process. The corresponding server needs to run so that the client instance can then be correctly used. This client allows to create DPF objects on a remote server.

## Constructor & Destructor Documentation

### Client() \[1/4]

```cpp theme={null}
ansys::dpf::Client::Client(
    std::string const & ip,
    std::string const & port
)
```

Create [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) object from known ip and port.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | ip | server ip |
| \[in] | port | server port |

### Client() \[2/4]

```cpp theme={null}
ansys::dpf::Client::Client(
    std::string const & ip,
    std::string const & port,
    LibraryHandle const & library_handle
)
```

Create [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) from known ip, port and library handle.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | ip | server ip |
| \[in] | port | server port |
| \[in] | library\_handle | the library\_handle API will be used |

### Client() \[3/4]

```cpp theme={null}
ansys::dpf::Client::Client(std::string const & address)
```

Create [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) from known address.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | address | string with 'ip::port' format. |

### Client() \[4/4]

```cpp theme={null}
ansys::dpf::Client::Client(
    std::string const & address,
    LibraryHandle const & library_handle
)
```

Create [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) from known address and library handle.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | address | string with 'ip::port' format. |
| \[in] | library\_handle | the library\_handle API will be used |

## Member Function Documentation

### emptyClient()

```cpp theme={null}
static Client ansys::dpf::Client::emptyClient()
```

`static`

Create an empty client.

**Returns**

Empty [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md)

### getChannelAddress()

```cpp theme={null}
std::string ansys::dpf::Client::getChannelAddress() const
```

**Returns**

Address string with 'ip::port' format.

### getProtocolName()

```cpp theme={null}
std::string ansys::dpf::Client::getProtocolName() const
```

**Returns**

Protocol's name.
