Public 멤버 함수 |
| CSnmpSession () |
| ~CSnmpSession () |
bool | SetDestination (const char *pszIp, int iPort=161, bool bTcp=false, bool bTrapOnly=false) |
| SNMP 요청 메시지를 전송할 SNMP Agent 주소를 설정한다.
|
bool | SetSnmpv2 (const char *pszCommunity) |
| SNMPv2 를 위한 SNMP community 문자열을 설정한다.
|
bool | SetSnmpv3 (const char *pszUserName, const char *pszAuthPassWord, const char *pszPrivPassWord, const char *pszAuthEngineId=NULL) |
| SNMPv3 를 위한 사용자 아이디 및 비밀번호를 설정한다.
|
bool | SetTimeout (int iMiliSecond) |
| 재전송을 위한 수신 대기 timeout 시간을 설정한다.
|
bool | SetReSendCount (int iReSendCount) |
| timeout 되었을 때에 재전송하는 개수를 설정한다.
|
void | SetDebug (bool bDebug) |
| SNMP 통신 디버그 모드를 설정한다.
|
bool | Open () |
| SNMP 통신을 위한 UDP 소켓을 생성한다.
|
void | Close () |
| SNMP 통신을 위한 UDP 소켓을 종료한다.
|
bool | Check () |
| 세션이 유효한지 검사한다.
|
const char * | GetIp () |
| destination IP 주소를 리턴한다.
|
bool | SendRequest (CSnmpMessage *pclsRequest, CSnmpMessage *pclsResponse) |
| SNMPv2 이면 SNMP 요청 메시지를 전송한 후, 이에 대한 응답 메시지를 수신한다.
|
bool | SendRequest (CSnmpMessage *pclsRequest) |
| SNMP trap 과 같은 단방향 SNMP 메시지를 전송한다.
|
bool | SendGetRequest (const char *pszOid, CAsnType **ppclsAsnType) |
| SNMP GET 메시지를 전송하여서 이에 대한 응답을 수신한다.
|
bool | SendGetNextRequest (const char *pszOid, std::string **ppstrResponseOid, CAsnType **ppclsAsnType) |
| SNMP GET NEXT 메시지를 전송하여서 이에 대한 응답을 수신한다.
|
bool | SendGetRequest (const char *pszOid, std::string &strValue) |
| SNMP GET 메시지를 전송하여서 이에 대한 응답을 수신한다.
|
bool | SendGetRequest (const char *pszOid, uint32_t &iValue) |
| SNMP GET 메시지를 전송하여서 이에 대한 응답을 수신한다.
|
bool | SendGetNextRequest (const char *pszOid, std::string **ppstrResponseOid, std::string &strValue) |
| SNMP GET NEXT 메시지를 전송하여서 이에 대한 응답을 수신한다.
|
bool | SendGetNextRequest (const char *pszOid, std::string **ppstrResponseOid, uint32_t &iValue) |
| SNMP GET NEXT 메시지를 전송하여서 이에 대한 응답을 수신한다.
|