OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IoContext Class Reference

#include <ksync_sock.h>

Inheritance diagram for IoContext:
Collaboration diagram for IoContext:

Public Types

enum  Type { IOC_UVE, IOC_KSYNC, MAX_WORK_QUEUES }
 

Public Member Functions

 IoContext ()
 
 IoContext (char *msg, uint32_t len, uint32_t seq, AgentSandeshContext *ctx, Type type)
 
 IoContext (char *msg, uint32_t len, uint32_t seq, AgentSandeshContext *ctx, Type type, uint32_t index)
 
virtual ~IoContext ()
 
bool operator< (const IoContext &rhs) const
 
virtual void Handler ()
 
virtual void ErrorHandler (int err)
 
AgentSandeshContextGetSandeshContext ()
 
Type type ()
 
void SetSeqno (uint32_t seqno)
 
uint32_t GetSeqno () const
 
char * GetMsg () const
 
uint32_t GetMsgLen () const
 
char * rx_buffer1 () const
 
void reset_rx_buffer1 ()
 
char * rx_buffer2 ()
 
void reset_rx_buffer2 ()
 
uint32_t index () const
 

Public Attributes

boost::intrusive::list_member_hook node_
 

Static Public Attributes

static const char * io_wq_names [MAX_WORK_QUEUES]
 

Protected Attributes

AgentSandeshContextsandesh_context_
 

Private Attributes

char * msg_
 
uint32_t msg_len_
 
uint32_t seqno_
 
Type type_
 
uint32_t index_
 
char * rx_buffer1_
 
char * rx_buffer2_
 

Friends

class KSyncSock
 

Detailed Description

Definition at line 92 of file ksync_sock.h.

Member Enumeration Documentation

Enumerator
IOC_UVE 
IOC_KSYNC 
MAX_WORK_QUEUES 

Definition at line 98 of file ksync_sock.h.

Constructor & Destructor Documentation

IoContext::IoContext ( )
inline

Definition at line 106 of file ksync_sock.h.

IoContext::IoContext ( char *  msg,
uint32_t  len,
uint32_t  seq,
AgentSandeshContext ctx,
Type  type 
)
inline

Definition at line 110 of file ksync_sock.h.

IoContext::IoContext ( char *  msg,
uint32_t  len,
uint32_t  seq,
AgentSandeshContext ctx,
Type  type,
uint32_t  index 
)
inline

Definition at line 115 of file ksync_sock.h.

virtual IoContext::~IoContext ( )
inlinevirtual

Definition at line 120 of file ksync_sock.h.

Member Function Documentation

virtual void IoContext::ErrorHandler ( int  err)
inlinevirtual
char* IoContext::GetMsg ( ) const
inline

Definition at line 139 of file ksync_sock.h.

uint32_t IoContext::GetMsgLen ( ) const
inline

Definition at line 140 of file ksync_sock.h.

AgentSandeshContext* IoContext::GetSandeshContext ( )
inline

Definition at line 134 of file ksync_sock.h.

uint32_t IoContext::GetSeqno ( ) const
inline

Definition at line 138 of file ksync_sock.h.

virtual void IoContext::Handler ( )
inlinevirtual
uint32_t IoContext::index ( ) const
inline

Definition at line 145 of file ksync_sock.h.

bool IoContext::operator< ( const IoContext rhs) const
inline

Definition at line 127 of file ksync_sock.h.

void IoContext::reset_rx_buffer1 ( )
inline

Definition at line 142 of file ksync_sock.h.

void IoContext::reset_rx_buffer2 ( )
inline

Definition at line 144 of file ksync_sock.h.

char* IoContext::rx_buffer1 ( ) const
inline

Definition at line 141 of file ksync_sock.h.

char* IoContext::rx_buffer2 ( )
inline

Definition at line 143 of file ksync_sock.h.

void IoContext::SetSeqno ( uint32_t  seqno)
inline

Definition at line 137 of file ksync_sock.h.

Type IoContext::type ( )
inline

Definition at line 135 of file ksync_sock.h.

Friends And Related Function Documentation

friend class KSyncSock
friend

Definition at line 164 of file ksync_sock.h.

Member Data Documentation

uint32_t IoContext::index_
private

Definition at line 157 of file ksync_sock.h.

const char * IoContext::io_wq_names
static
Initial value:
=
{
"Agent::Uve",
"Agent::KSync"
}

Definition at line 104 of file ksync_sock.h.

char* IoContext::msg_
private

Definition at line 153 of file ksync_sock.h.

uint32_t IoContext::msg_len_
private

Definition at line 154 of file ksync_sock.h.

boost::intrusive::list_member_hook IoContext::node_

Definition at line 147 of file ksync_sock.h.

char* IoContext::rx_buffer1_
private

Definition at line 161 of file ksync_sock.h.

char* IoContext::rx_buffer2_
private

Definition at line 162 of file ksync_sock.h.

AgentSandeshContext* IoContext::sandesh_context_
protected

Definition at line 150 of file ksync_sock.h.

uint32_t IoContext::seqno_
private

Definition at line 155 of file ksync_sock.h.

Type IoContext::type_
private

Definition at line 156 of file ksync_sock.h.


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