snmp_session wrapper add pack/unpack feature More...

#include <Session.h>

Inheritance diagram for Snmp::Session:
Collaboration diagram for Snmp::Session:

Public Member Functions

 Session ()
 
 Session (const Session &session)
 
Sessionoperator= (const Session &session)
 
 ~Session ()
 
void pack (Ipc::TypedMsgHdr &msg) const
 prepare for sendmsg() More...
 
void unpack (const Ipc::TypedMsgHdr &msg)
 restore struct from the message More...
 
void clear ()
 clear internal members More...
 

Public Attributes

int Version
 
u_char * community
 
int community_len
 
int retries
 
int timeout
 
char * peername
 
unsigned short remote_port
 
unsigned short local_port
 

Private Member Functions

void free ()
 free internal members More...
 
void assign (const Session &session)
 perform full assignment More...
 

Detailed Description

Definition at line 22 of file Session.h.

Constructor & Destructor Documentation

Snmp::Session::Session ( )

Definition at line 17 of file Session.cc.

References clear().

Snmp::Session::Session ( const Session session)

Definition at line 22 of file Session.cc.

Snmp::Session::~Session ( )

Definition at line 27 of file Session.cc.

References free.

Member Function Documentation

void Snmp::Session::assign ( const Session session)
private

Definition at line 59 of file Session.cc.

References snmp_session::community, Must, NULL, snmp_session::peername, and xstrdup.

void Snmp::Session::clear ( )

Definition at line 41 of file Session.cc.

Referenced by Session().

void Snmp::Session::free ( )
private

Definition at line 47 of file Session.cc.

References Must, NULL, and xfree.

Snmp::Session & Snmp::Session::operator= ( const Session session)

Definition at line 33 of file Session.cc.

References free.

void Snmp::Session::pack ( Ipc::TypedMsgHdr msg) const
void Snmp::Session::unpack ( const Ipc::TypedMsgHdr msg)

Member Data Documentation

u_char* snmp_session::community
inherited

Definition at line 39 of file snmp_session.h.

Referenced by assign(), and snmp_parse().

int snmp_session::community_len
inherited

Definition at line 40 of file snmp_session.h.

Referenced by snmp_parse().

unsigned short snmp_session::local_port
inherited

Definition at line 45 of file snmp_session.h.

char* snmp_session::peername
inherited

Definition at line 43 of file snmp_session.h.

Referenced by assign().

unsigned short snmp_session::remote_port
inherited

Definition at line 44 of file snmp_session.h.

int snmp_session::retries
inherited

Definition at line 41 of file snmp_session.h.

int snmp_session::timeout
inherited

Definition at line 42 of file snmp_session.h.

int snmp_session::Version
inherited

Definition at line 37 of file snmp_session.h.

Referenced by snmp_parse(), and snmpDecodePacket().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors