OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TProtocol.h File Reference
#include <map>
#include <sandesh/transport/TTransport.h>
#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/string_generator.hpp>
#include <boost/asio/ip/address.hpp>
#include <boost/config.hpp>
#include <boost/detail/endian.hpp>
Include dependency graph for TProtocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  contrail::sandesh::protocol::TProtocol
 
class  contrail::sandesh::protocol::TProtocolFactory
 

Namespaces

 contrail
 
 contrail::sandesh
 
 contrail::sandesh::protocol
 

Macros

#define __BYTE_ORDER   BOOST_BYTE_ORDER
 
#define __LITTLE_ENDIAN   0
 
#define __BIG_ENDIAN   __BYTE_ORDER
 
#define ntohll(n)   (n)
 
#define htonll(n)   (n)
 
#define bswap_64(n)
 
#define htolell(n)   bswap_64(n)
 
#define letohll(n)   bswap_64(n)
 

Enumerations

enum  contrail::sandesh::protocol::TType {
  contrail::sandesh::protocol::T_STOP = 0, contrail::sandesh::protocol::T_VOID = 1, contrail::sandesh::protocol::T_BOOL = 2, contrail::sandesh::protocol::T_BYTE = 3,
  contrail::sandesh::protocol::T_I08 = 3, contrail::sandesh::protocol::T_I16 = 6, contrail::sandesh::protocol::T_I32 = 8, contrail::sandesh::protocol::T_U64 = 9,
  contrail::sandesh::protocol::T_I64 = 10, contrail::sandesh::protocol::T_DOUBLE = 4, contrail::sandesh::protocol::T_STRING = 11, contrail::sandesh::protocol::T_UTF7 = 11,
  contrail::sandesh::protocol::T_STRUCT = 12, contrail::sandesh::protocol::T_MAP = 13, contrail::sandesh::protocol::T_SET = 14, contrail::sandesh::protocol::T_LIST = 15,
  contrail::sandesh::protocol::T_UTF8 = 16, contrail::sandesh::protocol::T_UTF16 = 17, contrail::sandesh::protocol::T_SANDESH = 18, contrail::sandesh::protocol::T_U16 = 19,
  contrail::sandesh::protocol::T_U32 = 20, contrail::sandesh::protocol::T_XML = 21, contrail::sandesh::protocol::T_IPV4 = 22, contrail::sandesh::protocol::T_UUID = 23,
  contrail::sandesh::protocol::T_IPADDR = 24
}
 
enum  contrail::sandesh::protocol::TMessageType { contrail::sandesh::protocol::T_CALL = 1, contrail::sandesh::protocol::T_REPLY = 2, contrail::sandesh::protocol::T_EXCEPTION = 3, contrail::sandesh::protocol::T_ONEWAY = 4 }
 

Functions

template<typename To , typename From >
static To contrail::sandesh::protocol::bitwise_cast (From from)
 
template<class Protocol_ >
int32_t contrail::sandesh::protocol::skip (Protocol_ &prot, TType type)
 

Macro Definition Documentation

#define __BIG_ENDIAN   __BYTE_ORDER

Definition at line 96 of file TProtocol.h.

#define __BYTE_ORDER   BOOST_BYTE_ORDER

Definition at line 90 of file TProtocol.h.

#define __LITTLE_ENDIAN   0

Definition at line 95 of file TProtocol.h.

#define bswap_64 (   n)
Value:
( (((n) & 0xff00000000000000ull) >> 56) \
| (((n) & 0x00ff000000000000ull) >> 40) \
| (((n) & 0x0000ff0000000000ull) >> 24) \
| (((n) & 0x000000ff00000000ull) >> 8) \
| (((n) & 0x00000000ff000000ull) << 8) \
| (((n) & 0x0000000000ff0000ull) << 24) \
| (((n) & 0x000000000000ff00ull) << 40) \
| (((n) & 0x00000000000000ffull) << 56) )

Definition at line 109 of file TProtocol.h.

#define htolell (   n)    bswap_64(n)

Definition at line 118 of file TProtocol.h.

#define htonll (   n)    (n)

Definition at line 103 of file TProtocol.h.

#define letohll (   n)    bswap_64(n)

Definition at line 119 of file TProtocol.h.

#define ntohll (   n)    (n)

Definition at line 102 of file TProtocol.h.