-
Notifications
You must be signed in to change notification settings - Fork 0
/
common_config.h
38 lines (30 loc) · 1.55 KB
/
common_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// (c) Copyright, Real-Time Innovations, 2021. All rights reserved.
// RTI grants Licensee a license to use, modify, compile, and create derivative
// works of the software solely for use with RTI Connext DDS. Licensee may
// redistribute copies of the software provided that all such copies are subject
// to this license. The software is provided "as is", with no warranty of any
// type, including any warranty for fitness for any purpose. RTI is under no
// obligation to maintain or support the software. RTI shall not be liable for
// any incidental or consequential damages arising out of the use or inability
// to use the software.
#ifndef COMMON_CONFIG_H
#define COMMON_CONFIG_H
#include <iostream>
// DDS Domain
auto domain_id = 100;
// network interface information
const std::string k_loopback_name("loopback");
const unsigned int k_loopback_ip(0x7f000001);
const unsigned int k_loopback_mask(0xff000000);
const std::string k_real_nic_name("real_nic");
const unsigned int k_real_nic_ip(0xc0a80174);
const unsigned int k_real_nic_mask(0xffffff00);
// discovery-related constants for example_publisher
static const std::string k_publisher_initial_peer = "127.0.0.1";
static const std::string k_PARTICIPANT01_NAME = "publisher";
static const int k_OBJ_ID_PARTICIPANT01_DW01 = 100;
// discovery-related constants for example_subscriber
static const std::string k_subscriber_initial_peer = "127.0.0.1";
static const std::string k_PARTICIPANT02_NAME = "subscriber";
static const int k_OBJ_ID_PARTICIPANT02_DR01 = 200;
#endif