WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
nt::Message Class Reference

Public Types

enum  MsgType {
  kUnknown = -1, kKeepAlive = 0x00, kClientHello = 0x01, kProtoUnsup = 0x02,
  kServerHelloDone = 0x03, kServerHello = 0x04, kClientHelloDone = 0x05, kEntryAssign = 0x10,
  kEntryUpdate = 0x11, kFlagsUpdate = 0x12, kEntryDelete = 0x13, kClearEntries = 0x14,
  kExecuteRpc = 0x20, kRpcResponse = 0x21
}
 
typedef std::function< NT_Type(unsigned
int id)> 
GetEntryTypeFunc
 

Public Member Functions

 Message (MsgType type, const private_init &)
 
MsgType type () const
 
bool Is (MsgType type) const
 
llvm::StringRef str () const
 
std::shared_ptr< Valuevalue () const
 
unsigned int id () const
 
unsigned int flags () const
 
unsigned int seq_num_uid () const
 
void Write (WireEncoder &encoder) const
 
 Message (const Message &)=delete
 
Messageoperator= (const Message &)=delete
 

Static Public Member Functions

static std::shared_ptr< MessageRead (WireDecoder &decoder, GetEntryTypeFunc get_entry_type)
 
static std::shared_ptr< MessageKeepAlive ()
 
static std::shared_ptr< MessageProtoUnsup ()
 
static std::shared_ptr< MessageServerHelloDone ()
 
static std::shared_ptr< MessageClientHelloDone ()
 
static std::shared_ptr< MessageClearEntries ()
 
static std::shared_ptr< MessageClientHello (llvm::StringRef self_id)
 
static std::shared_ptr< MessageServerHello (unsigned int flags, llvm::StringRef self_id)
 
static std::shared_ptr< MessageEntryAssign (llvm::StringRef name, unsigned int id, unsigned int seq_num, std::shared_ptr< Value > value, unsigned int flags)
 
static std::shared_ptr< MessageEntryUpdate (unsigned int id, unsigned int seq_num, std::shared_ptr< Value > value)
 
static std::shared_ptr< MessageFlagsUpdate (unsigned int id, unsigned int flags)
 
static std::shared_ptr< MessageEntryDelete (unsigned int id)
 
static std::shared_ptr< MessageExecuteRpc (unsigned int id, unsigned int uid, llvm::StringRef params)
 
static std::shared_ptr< MessageRpcResponse (unsigned int id, unsigned int uid, llvm::StringRef results)
 

The documentation for this class was generated from the following files: