MessageTypes.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #ifndef RTPS_MESSAGETYPES_H
00009 #define RTPS_MESSAGETYPES_H
00010 
00011 #include "RtpsCoreC.h"
00012 
00013 namespace OpenDDS {
00014   namespace RTPS {
00015 
00016     // For messages we create, the "octetsToInlineQoS" value will be constant.
00017     const ACE_CDR::UShort DATA_OCTETS_TO_IQOS = 16;
00018     const ACE_CDR::UShort DATA_FRAG_OCTETS_TO_IQOS = 28;
00019 
00020     const ACE_CDR::UShort RTPSHDR_SZ = 20, // size of RTPS Message Header
00021       SMHDR_SZ = 4, // size of SubmessageHeader
00022       HEARTBEAT_SZ = 28, // size (octetsToNextHeader) of HeartBeatSubmessage
00023       INFO_DST_SZ = 12, // size (octetsToNextHeader) of InfoDestSubmessage
00024       INFO_TS_SZ = 8; // size of InfoTimestampSubmessage with FLAG_I == 0
00025 
00026     const OctetArray4
00027       PARTICIPANT_MESSAGE_DATA_KIND_UNKNOWN =
00028         { 0x00, 0x00, 0x00, 0x00 },
00029       PARTICIPANT_MESSAGE_DATA_KIND_AUTOMATIC_LIVELINESS_UPDATE =
00030         { 0x00, 0x00, 0x00, 0x01 },
00031       PARTICIPANT_MESSAGE_DATA_KIND_MANUAL_LIVELINESS_UPDATE =
00032         { 0x00, 0x00, 0x00, 0x02 };
00033 
00034   }
00035 }
00036 
00037 #endif /* RTPS_MESSAGETYPES_H */

Generated on Fri Feb 12 20:05:24 2016 for OpenDDS by  doxygen 1.4.7