CoreDX Data Distribution Service
The High Performance, Small Footprint DDS from Twin Oaks Computing, Inc
coredx_tcp_transport.h
Go to the documentation of this file.
1 /*****************************************************************
2  *
3  * file: cdx_tcp_transport.h
4  * desc: This file provides the CoreDX DDS TCP Transport API.
5  *
6  *****************************************************************
7  *
8  * Copyright(C) 2006-2020 Twin Oaks Computing, Inc
9  * All rights reserved. Castle Rock, CO 80108
10  *
11  *****************************************************************
12  * This software has been provided pursuant to a License Agreement
13  * containing restrictions on its use. This software contains
14  * valuable trade secrets and proprietary information of
15  * Twin Oaks Computing, Inc and is protected by law. It may not be
16  * copied or distributed in any form or medium, disclosed to third
17  * parties, reverse engineered or used in any manner not provided
18  * for in said License Agreement except with the prior written
19  * authorization from Twin Oaks Computing, Inc.
20  *****************************************************************/
21 #ifndef _COREDX_TCP_TRANSPORT_H
22 #define _COREDX_TCP_TRANSPORT_H
23 
24 #include <dds/coredx_transport.h>
25 #include <dds/dds_seq.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 # if defined(__linux__) || defined(_WIN32) || defined(__MACH__)
32 # define COREDX_HAS_TCP_TRANSPORT 1
33 # endif
34 
54  typedef struct CoreDX_TcpTransportConfig {
58  CoreDX_IpTransportInterfaceSeq interfaces;
59  unsigned char dynamic_interfaces;
60  unsigned char add_checksum;
61  unsigned char use_checksum;
62  unsigned char require_checksum;
64  DDS_Duration_t reconnect_delay;
65  unsigned int debug_flags;
67 
68 # define COREDX_TCP_TRANSPORT_CONFIG_DEFAULT NULL
69 
76  COREDX_C_ADD_API DDS_ReturnCode_t CoreDX_TcpTransport_get_default_config( CoreDX_TcpTransportConfig * config );
84  COREDX_C_ADD_API DDS_ReturnCode_t CoreDX_TcpTransport_get_env_config ( CoreDX_TcpTransportConfig * config );
88  COREDX_C_ADD_API DDS_ReturnCode_t CoreDX_TcpTransport_clear_config ( CoreDX_TcpTransportConfig * config );
96  COREDX_C_ADD_API CoreDX_Transport * CoreDX_TcpTransport_create_transport ( CoreDX_TcpTransportConfig * config );
97 
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif
Structure that holds TCP Transport configuration items.
Definition: coredx_tcp_transport.h:54
int DDS_ReturnCode_t
Definition: dds_types.h:56
unsigned char require_checksum
Definition: coredx_tcp_transport.h:62
unsigned char add_checksum
Definition: coredx_tcp_transport.h:60
unsigned char use_checksum
Definition: coredx_tcp_transport.h:61
unsigned int debug_flags
Definition: coredx_tcp_transport.h:65
DDS_Duration_t reconnect_delay
Definition: coredx_tcp_transport.h:64
unsigned char dynamic_interfaces
Definition: coredx_tcp_transport.h:59
CoreDX_IpTransportInterfaceSeq interfaces
Definition: coredx_tcp_transport.h:58
int tx_max_packet_size
Definition: coredx_tcp_transport.h:63
short participant_index
Definition: coredx_tcp_transport.h:55

© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80104
All rights reserved.