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

#include <ksync_sock.h>

Inheritance diagram for KSyncIoContext:
Collaboration diagram for KSyncIoContext:

Public Member Functions

 KSyncIoContext (KSyncSock *sock, KSyncEntry *sync_entry, int msg_len, char *msg, KSyncEntry::KSyncEvent event)
 
virtual ~KSyncIoContext ()
 
virtual void Handler ()
 
void ErrorHandler (int err)
 
KSyncEntryGetKSyncEntry () const
 
KSyncEntry::KSyncEvent event () const
 
- Public Member Functions inherited from IoContext
 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
 
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
 

Private Attributes

KSyncEntryentry_
 
KSyncEntry::KSyncEvent event_
 
AgentSandeshContextagent_sandesh_ctx_
 
KSyncSocksock_
 

Additional Inherited Members

- Public Types inherited from IoContext
enum  Type { IOC_UVE, IOC_KSYNC, MAX_WORK_QUEUES }
 
- Public Attributes inherited from IoContext
boost::intrusive::list_member_hook node_
 
- Static Public Attributes inherited from IoContext
static const char * io_wq_names [MAX_WORK_QUEUES]
 
- Protected Attributes inherited from IoContext
AgentSandeshContextsandesh_context_
 

Detailed Description

Definition at line 168 of file ksync_sock.h.

Constructor & Destructor Documentation

KSyncIoContext::KSyncIoContext ( KSyncSock sock,
KSyncEntry sync_entry,
int  msg_len,
char *  msg,
KSyncEntry::KSyncEvent  event 
)

Definition at line 867 of file ksync_sock.cc.

Here is the call graph for this function:

virtual KSyncIoContext::~KSyncIoContext ( )
inlinevirtual

Definition at line 172 of file ksync_sock.h.

Member Function Documentation

void KSyncIoContext::ErrorHandler ( int  err)
virtual

Reimplemented from IoContext.

Definition at line 881 of file ksync_sock.cc.

Here is the call graph for this function:

KSyncEntry::KSyncEvent KSyncIoContext::event ( ) const
inline

Definition at line 179 of file ksync_sock.h.

KSyncEntry* KSyncIoContext::GetKSyncEntry ( ) const
inline

Definition at line 178 of file ksync_sock.h.

void KSyncIoContext::Handler ( )
virtual

Reimplemented from IoContext.

Definition at line 877 of file ksync_sock.cc.

Here is the call graph for this function:

Member Data Documentation

AgentSandeshContext* KSyncIoContext::agent_sandesh_ctx_
private

Definition at line 183 of file ksync_sock.h.

KSyncEntry* KSyncIoContext::entry_
private

Definition at line 181 of file ksync_sock.h.

KSyncEntry::KSyncEvent KSyncIoContext::event_
private

Definition at line 182 of file ksync_sock.h.

KSyncSock* KSyncIoContext::sock_
private

Definition at line 184 of file ksync_sock.h.


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