helics  3.3.0
networkDefaults.hpp
1 /*
2 Copyright (c) 2017-2022,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-License-Identifier: BSD-3-Clause
6 */
7 #pragma once
8 namespace helics {
9 
10 namespace network {
11  // For ZMQ Comms
12  constexpr int DEFAULT_ZMQ_PORT = 23404;
13 
14  constexpr int BACKUP_ZMQ_PORT = 23406;
15 
16  constexpr int DEFAULT_ZMQSS_PORT = 23414;
17  constexpr int BACKUP_ZMQSS_PORT = 23814;
18 
19  // for TCP comms
20  constexpr int DEFAULT_TCP_PORT = 24160;
21  constexpr int BACKUP_TCP_PORT = 24161;
22  constexpr int DEFAULT_TCPSS_PORT = 33133;
23 
24  // for UDP comms
25  static const int DEFAULT_UDP_PORT = 23901;
26  static const int BACKUP_UDP_PORT = 23902;
27 } // namespace network
28 
29 int getDefaultPort(int coreType);
30 
31 } // namespace helics
HELICS_CORE_TYPE_ZMQ
@ HELICS_CORE_TYPE_ZMQ
Definition: helics_enums.h:26
HELICS_CORE_TYPE_ZMQ_SS
@ HELICS_CORE_TYPE_ZMQ_SS
Definition: helics_enums.h:43
HELICS_CORE_TYPE_HTTP
@ HELICS_CORE_TYPE_HTTP
Definition: helics_enums.h:49
HELICS_CORE_TYPE_UDP
@ HELICS_CORE_TYPE_UDP
Definition: helics_enums.h:41
HELICS_CORE_TYPE_WEBSOCKET
@ HELICS_CORE_TYPE_WEBSOCKET
Definition: helics_enums.h:51
HELICS_CORE_TYPE_TCP_SS
@ HELICS_CORE_TYPE_TCP_SS
Definition: helics_enums.h:47
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
HELICS_CORE_TYPE_TCP
@ HELICS_CORE_TYPE_TCP
Definition: helics_enums.h:39