    

 ## On this page

  

 

 # File SyscComm.hpp

 Last update: 09.03.2026 

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

**Location**: `SyscComm.hpp`

## Classes

- [sysc::HostAndPort](structsysc_1_1HostAndPort.md#structsysc_1_1HostAndPort)

## Namespaces

- [sysc](namespacesysc.md#namespacesysc)

## Includes

- SystemCouplingParticipant/LibraryType.hpp
- SystemCouplingParticipant/CommonTypes.hpp
- SystemCouplingParticipant/InputIntegerData.hpp
- 

```mermaid
graph LR
1["SyscComm.hpp"]
click 1 "SyscComm_8hpp.md#SyscComm_8hpp"
1 --> 2
1 --> 3
1 --> 4
1 --> 5

3["SystemCouplingParticipant/CommonTypes.hpp"]

4["SystemCouplingParticipant/InputIntegerData.hpp"]

2["SystemCouplingParticipant/LibraryType.hpp"]

5["string"]


```

## Source

```cpp
/*
 * © 2025 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
 */

#pragma once

#include "SystemCouplingParticipant/LibraryType.hpp"

#include "SystemCouplingParticipant/CommonTypes.hpp"
#include "SystemCouplingParticipant/InputIntegerData.hpp"

#include <string>

namespace sysc {

struct HostAndPort {
  HostAndPort() = default;

  HostAndPort(Host host, Port port) :
      host(std::move(host)), port(port) {}

  HostAndPort(Port port) :
      port(port) {}

  Host host;
  Port port{0};
};

HostAndPort SYSTEM_COUPLING_PARTICIPANT_DLL createRootServer(Host host, Port port);

bool SYSTEM_COUPLING_PARTICIPANT_DLL isRootServerCreated();

int SYSTEM_COUPLING_PARTICIPANT_DLL getMyRank();

int SYSTEM_COUPLING_PARTICIPANT_DLL getNumRanks();

double SYSTEM_COUPLING_PARTICIPANT_DLL reduceMax(double value);

std::uint16_t SYSTEM_COUPLING_PARTICIPANT_DLL reduceMax(std::uint16_t value);

std::uint64_t SYSTEM_COUPLING_PARTICIPANT_DLL reduceSum(std::uint64_t value);

bool SYSTEM_COUPLING_PARTICIPANT_DLL reduceAnd(bool value);

void SYSTEM_COUPLING_PARTICIPANT_DLL broadcast(IntegerData data, int rootRank);

}  // namespace sysc

```