RTI Connext DDS Micro  Version 2.4.6
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
netio_config.h
Go to the documentation of this file.
1 /*
2  * FILE: netio_config.h - NETIO Configuration API
3  *
4  * Copyright 2012-2015 Real-Time Innovations, Inc.
5  *
6  * No duplications, whole or partial, manual or electronic, may be made
7  * without express written permission. Any such copies, or
8  * revisions thereof, must display this notice unaltered.
9  * This code contains trade secrets of Real-Time Innovations, Inc.
10  *
11  * Modification History
12  * --------------------
13  * 22jan2014,eh MICRO-1027: disable multicast for RTI_CERT
14  * 23feb2012,tk Written
15  */
16 /*ce
17  * \file
18  */
19 /*ci
20  * \defgroup NETIOConfig NETIO Configuration
21  * \ingroup NETIOModule
22  * \brief NETIO Configuration API
23  *
24  * \details
25  *
26  * This file is the single point where NETIO behavior can be configured.
27  * All optional and configurable features shall be added here.
28  */
29 /*ci \addtogroup NETIOConfig
30  * @{
31  */
32 #ifndef netio_config_h
33 #define netio_config_h
34 
35 /* The global configuration is read first. Local definitions must
36  * check if the global configuration has set an option or not. Note that
37  * a module cannot disable a feature.
38  */
39 #ifdef HAVE_GLOBAL_CONFIG
40 #include "rti_me_config.h"
41 #endif
42 
43 /*ci
44  * \def NETIO_CONFIG_INTERFACE
45  * \brief Set NETIO_CONFIG_INTERFACE to the in-use interface address
46  */
47 #ifndef NETIO_CONFIG_INTERFACE
48 #define NETIO_CONFIG_INTERFACE "127.0.0.1"
49 #endif
50 
51 /*ci
52  * \def NETIO_CONFIG_HAVE_IFCONF
53  * \brief Set to 1 if the network stack supports reading the interface list
54  */
55 #ifndef NETIO_CONFIG_HAVE_IFCONF
56 #if (defined(RTI_UNIX) || defined(RTI_VXWORKS)) && \
57  !defined(RTI_CERT) && !defined(RTI_NO_IFCONFIG) && \
58  (ENABLE_FACE_COMPLIANCE == FACE_COMPLIANCE_LEVEL_NONE)
59 #define NETIO_CONFIG_HAVE_IFCONF 1
60 #else
61 #define NETIO_CONFIG_HAVE_IFCONF 0
62 #endif
63 #endif /* NETIO_CONFIG_HAVE_IFCONF */
64 
65 /*ci
66  * \def NETIO_CONFIG_ENABLE_MULTICAST
67  * \brief Set to 1 if multicast should be enabled
68  *
69  * \details
70  *
71  * The configuration file is platform independent and may be overridden
72  * by an implementation. That is, if multicast is disabled here it shall
73  * _not_ be implemented by the transport. However, even if multicast is
74  * enabled here it _may_ be disabled by the implementation if the implementation
75  * detects it is not supported.
76  */
77 #ifdef RTI_CERT
78 /* Multicast is disabled for Cert configuration */
79 #define NETIO_CONFIG_ENABLE_MULTICAST 0
80 #else
81 #ifndef NETIO_CONFIG_ENABLE_MULTICAST
82 #if (ENABLE_FACE_COMPLIANCE > FACE_COMPLIANCE_LEVEL_NONE)
83 #define NETIO_CONFIG_ENABLE_MULTICAST 0
84 #else
85 #define NETIO_CONFIG_ENABLE_MULTICAST 1
86 #endif
87 #endif /* NETIO_CONFIG_ENABLE_MULTICAST */
88 #endif /* !RTI_CERT */
89 
90 #endif /* netio_config_h */
91 
92 /*ci @} */

RTI Connext DDS Micro Version 2.4.6 Copyright © Mon Jan 25 2016 Real-Time Innovations, Inc