// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * @file RTPS_messages.h */ #ifndef _FASTDDS_RTPS_RTPS_MESSAGES_H_ #define _FASTDDS_RTPS_RTPS_MESSAGES_H_ #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC #include #include #include #include namespace eprosima{ namespace fastrtps{ namespace rtps{ // //!@brief Enumeration of the different Submessages types enum SubmessageId : uint8_t { PAD = 0x01, ACKNACK = 0x06, HEARTBEAT = 0x07, GAP = 0x08, INFO_TS = 0x09, INFO_SRC = 0x0c, INFO_REPLY_IP4 = 0x0d, INFO_DST = 0x0e, INFO_REPLY = 0x0f, NACK_FRAG = 0x12, HEARTBEAT_FRAG = 0x13, DATA = 0x15, DATA_FRAG = 0x16 }; //!@brief Structure Header_t, RTPS Message Header Structure. //!@ingroup COMMON_MODULE struct Header_t{ //!Protocol version ProtocolVersion_t version; //!Vendor ID VendorId_t vendorId; //!GUID prefix GuidPrefix_t guidPrefix; Header_t(): version(c_ProtocolVersion) , vendorId(c_VendorId_eProsima) { } ~Header_t(){ } }; /** * @param output * @param h * @return */ inline std::ostream& operator<<(std::ostream& output,const Header_t& h){ output << "RTPS HEADER of Version: " << (int)h.version.m_major << "." << (int)h.version.m_minor; output << " || VendorId: " <) sh.flags; return output; } } } } #endif #endif /* _FASTDDS_RTPS_MESSAGES_H_ */