Chinaunix首页 | 论坛 | 博客
  • 博客访问: 584577
  • 博文数量: 141
  • 博客积分: 3425
  • 博客等级: 中校
  • 技术积分: 1609
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-23 15:55
文章分类

全部博文(141)

文章存档

2019年(5)

2011年(19)

2010年(36)

2009年(13)

2008年(50)

2007年(18)

分类: C/C++

2011-06-23 09:55:05

Request Processing

boolean MibLeaf::value_ok(const Vbx& vb)
Return true if the value portion of vb can be accepted as the new value for the MibLeaf management information. The default implementation of thevalue_ok member function MibLeaf offers always returns true. Override this function in your own sub-class of MibLeaf if do not you want any value to be accepted.

Note: value_ok is called by MibLeaf::prepare_set_request to check if a SNMP SET operation can be executed.

void MibLeaf::set(const Vbx& vb)
Set the management information of MibLeaf to the value portion of vb. The default implementation of set simply calls set_value. Override the set function if you want your sub-class of MibLeaf to perform additional or other actions.

Note: set is called by MibLeaf::commit_set_request to set the MibLeaf management information to its new value.

int MibLeaf::unset()
Set the management information of MibLeaf stored in MibLeaf::value to its old value stored in MibLeaf::undo. Returns SNMP_ERROR_SUCCESS on success and SNMP_ERROR_UNDO_FAIL on failure.

Note: unset is called by MibLeaf::undo_set_request to set the MibLeaf management information to its old value.
阅读(1056) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~