    

 ## On this page

  

 

 # Structure sysc::HostAndPort

 Last update: 17.07.2025 

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")![](https://img.shields.io/badge/-public-brightgreen "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.md#structsysc_1_1HostAndPort_1a70a711dc66721bbc9d0e9862a01b0a7d)
- [HostAndPort](structsysc_1_1HostAndPort.md#structsysc_1_1HostAndPort_1ab46ff92d33f63082e405b16ab669ada3)
- [HostAndPort](structsysc_1_1HostAndPort.md#structsysc_1_1HostAndPort_1ad1f900b2d235b7633444d10b9f818afb)
- [HostAndPort](structsysc_1_1HostAndPort.md#structsysc_1_1HostAndPort_1ac95ec5248d3b89f0798b29a3a19ba231)
- [port](structsysc_1_1HostAndPort.md#structsysc_1_1HostAndPort_1a3615321654401d527d930495ee7d9c08)

## Public attributes

<a id="structsysc_1_1HostAndPort_1a70a711dc66721bbc9d0e9862a01b0a7d"></a>

### Variable host

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

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

```cpp
Host sysc::HostAndPort::host

```

**Type**: [Host](namespacesysc.md#group__SystemCouplingParticipantAPIs_1ga2738c290fa117dc95b32cc858abbb6af)

<a id="structsysc_1_1HostAndPort_1a3615321654401d527d930495ee7d9c08"></a>

### Variable port

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

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

```cpp
Port sysc::HostAndPort::port {0}

```

**Type**: [Port](namespacesysc.md#group__SystemCouplingParticipantAPIs_1ga0c12006dc920d82ffa7185811c164f54)

## Public functions

<a id="structsysc_1_1HostAndPort_1ab46ff92d33f63082e405b16ab669ada3"></a>

### Function HostAndPort

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

```cpp
sysc::HostAndPort::HostAndPort()=default

```

**Return type**:

<a id="structsysc_1_1HostAndPort_1ad1f900b2d235b7633444d10b9f818afb"></a>

### Function HostAndPort

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

```cpp
sysc::HostAndPort::HostAndPort(Host host, Port port)

```

**Parameters**:

- [Host](namespacesysc.md#group__SystemCouplingParticipantAPIs_1ga2738c290fa117dc95b32cc858abbb6af) **host**
- [Port](namespacesysc.md#group__SystemCouplingParticipantAPIs_1ga0c12006dc920d82ffa7185811c164f54) **port**

**Return type**:

<a id="structsysc_1_1HostAndPort_1ac95ec5248d3b89f0798b29a3a19ba231"></a>

### Function HostAndPort

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

```cpp
sysc::HostAndPort::HostAndPort(Port port)

```

**Parameters**:

- [Port](namespacesysc.md#group__SystemCouplingParticipantAPIs_1ga0c12006dc920d82ffa7185811c164f54) **port**

**Return type**: