Public Member Functions |
| PSNMPClient (const PString &host, PINDEX retryMax=5, PINDEX timeoutMax=5, PINDEX rxBufferSize=1500, PINDEX txSize=484) |
| PSNMPClient (PINDEX retryMax=5, PINDEX timeoutMax=5, PINDEX rxBufferSize=1500, PINDEX txSize=484) |
void | SetVersion (PASNInt version) |
PASNInt | GetVersion () const |
void | SetCommunity (const PString &str) |
PString | GetCommunity () const |
void | SetRequestID (PASNInt requestID) |
PASNInt | GetRequestID () const |
BOOL | WriteGetRequest (PSNMPVarBindingList &varsIn, PSNMPVarBindingList &varsOut) |
BOOL | WriteGetNextRequest (PSNMPVarBindingList &varsIn, PSNMPVarBindingList &varsOut) |
BOOL | WriteSetRequest (PSNMPVarBindingList &varsIn, PSNMPVarBindingList &varsOut) |
ErrorType | GetLastErrorCode () const |
PINDEX | GetLastErrorIndex () const |
PString | GetLastErrorText () const |
Protected Member Functions |
BOOL | WriteRequest (PASNInt requestCode, PSNMPVarBindingList &varsIn, PSNMPVarBindingList &varsOut) |
BOOL | ReadRequest (PBYTEArray &readBuffer) |
Protected Attributes |
PString | hostName |
PString | community |
PASNInt | requestId |
PASNInt | version |
PINDEX | retryMax |
PINDEX | lastErrorIndex |
ErrorType | lastErrorCode |
| The platform independant error code.
|
PBYTEArray | readBuffer |
PINDEX | maxRxSize |
PINDEX | maxTxSize |
Class which gets SNMP data