PSNMPClient Class Reference
#include <psnmp.h>
List of all members.
|
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 |
Detailed Description
Class which gets SNMP data
Constructor & Destructor Documentation
| PSNMPClient::PSNMPClient |
( |
const PString & |
host, |
|
|
PINDEX |
retryMax = 5, |
|
|
PINDEX |
timeoutMax = 5, |
|
|
PINDEX |
rxBufferSize = 1500, |
|
|
PINDEX |
txSize = 484 | |
|
) |
| | |
| PSNMPClient::PSNMPClient |
( |
PINDEX |
retryMax = 5, |
|
|
PINDEX |
timeoutMax = 5, |
|
|
PINDEX |
rxBufferSize = 1500, |
|
|
PINDEX |
txSize = 484 | |
|
) |
| | |
Member Function Documentation
| void PSNMPClient::SetVersion |
( |
PASNInt |
version |
) |
|
| PASNInt PSNMPClient::GetVersion |
( |
|
) |
const |
| void PSNMPClient::SetCommunity |
( |
const PString & |
str |
) |
|
| PString PSNMPClient::GetCommunity |
( |
|
) |
const |
| void PSNMPClient::SetRequestID |
( |
PASNInt |
requestID |
) |
|
| PASNInt PSNMPClient::GetRequestID |
( |
|
) |
const |
| ErrorType PSNMPClient::GetLastErrorCode |
( |
|
) |
const |
| PINDEX PSNMPClient::GetLastErrorIndex |
( |
|
) |
const |
| PString PSNMPClient::GetLastErrorText |
( |
|
) |
const |
| BOOL PSNMPClient::ReadRequest |
( |
PBYTEArray & |
readBuffer |
) |
[protected] |
Member Data Documentation
The platform independant error code.
Reimplemented from PChannel.
The documentation for this class was generated from the following file: