> ## 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.

# Structure sysc::HostAndPort

![][C++]
![][public]

**Definition**: `SyscComm.hpp` (line 23)

Provide a structure for host and port for remote connections.

**Parameters**:

* **host**: remote server host name
* **port**: remote server port number

## Members

* [host](#structsysc_1_1HostAndPort_1a70a711dc66721bbc9d0e9862a01b0a7d)
* [HostAndPort](#structsysc_1_1HostAndPort_1ab46ff92d33f63082e405b16ab669ada3)
* [HostAndPort](#structsysc_1_1HostAndPort_1ad1f900b2d235b7633444d10b9f818afb)
* [HostAndPort](#structsysc_1_1HostAndPort_1ac95ec5248d3b89f0798b29a3a19ba231)
* [port](#structsysc_1_1HostAndPort_1a3615321654401d527d930495ee7d9c08)

## Public attributes

### Variable host

![][public]

**Definition**: `SyscComm.hpp` (line 32)

```cpp theme={null}
Host sysc::HostAndPort::host
```

**Type**: [Host](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1ga2738c290fa117dc95b32cc858abbb6af)

### Variable port

![][public]

**Definition**: `SyscComm.hpp` (line 33)

```cpp theme={null}
Port sysc::HostAndPort::port {0}
```

**Type**: [Port](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1ga0c12006dc920d82ffa7185811c164f54)

## Public functions

### Function HostAndPort

![][public]

```cpp theme={null}
sysc::HostAndPort::HostAndPort()=default
```

**Return type**:

### Function HostAndPort

![][public]

```cpp theme={null}
sysc::HostAndPort::HostAndPort(Host host, Port port)
```

**Parameters**:

* [Host](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1ga2738c290fa117dc95b32cc858abbb6af) **host**
* [Port](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1ga0c12006dc920d82ffa7185811c164f54) **port**

**Return type**:

### Function HostAndPort

![][public]

```cpp theme={null}
sysc::HostAndPort::HostAndPort(Port port)
```

**Parameters**:

* [Port](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1ga0c12006dc920d82ffa7185811c164f54) **port**

**Return type**:

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[private]: https://img.shields.io/badge/-private-red "private"

[const]: https://img.shields.io/badge/-const-lightblue "const"
