netsnmp_multiplexer.3
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:2k
- .TH "multiplexer: splits mode requests into calls to different handlers." 3 "28 Nov 2005" "Version 5.2.1.rc3" "net-snmp" " -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- multiplexer: splits mode requests into calls to different handlers. - The multiplexer helper lets you split the calling chain depending on the calling mode (get vs getnext vs set).
- .PP
- .SS "Functions"
- .in +1c
- .ti -1c
- .RI "fBnetsnmp_mib_handlerfP * fBnetsnmp_get_multiplexer_handlerfP (fBnetsnmp_mib_handler_methodsfP *req)"
- .br
- .RI "fIreturns a multiplixer handler given a fBnetsnmp_mib_handler_methodsfP structure of subhandlers. fP"
- .ti -1c
- .RI "int fBnetsnmp_multiplexer_helper_handlerfP (fBnetsnmp_mib_handlerfP *handler, fBnetsnmp_handler_registrationfP *reginfo, fBnetsnmp_agent_request_infofP *reqinfo, fBnetsnmp_request_infofP *requests)"
- .br
- .RI "fIimplements the multiplexer helper fP"
- .in -1c
- .SH "Detailed Description"
- .PP
- The multiplexer helper lets you split the calling chain depending on the calling mode (get vs getnext vs set).
- .PP
- Useful if you want different routines to handle different aspects of SNMP requests, which is very common for GET vs SET type actions.
- .PP
- Functionally:
- .PP
- .IP "1." 4
- GET requests call the get_method
- .IP "2." 4
- GETNEXT requests call the getnext_method, or if not present, the get_method.
- .IP "3." 4
- GETBULK requests call the getbulk_method, or if not present, the getnext_method, or if even that isn't present the get_method.
- .IP "4." 4
- SET requests call the set_method, or if not present return a SNMP_ERR_NOTWRITABLE error.
- .PP
- .SH "Function Documentation"
- .PP
- .SS "fBnetsnmp_mib_handlerfP* netsnmp_get_multiplexer_handler (fBnetsnmp_mib_handler_methodsfP * req)"
- .PP
- returns a multiplixer handler given a fBnetsnmp_mib_handler_methodsfP structure of subhandlers.
- .PP
- Definition at line 36 of file multiplexer.c.
- .PP
- References netsnmp_mib_handler_s::myvoid, netsnmp_create_handler(), netsnmp_multiplexer_helper_handler(), NULL, and snmp_log().
- .SS "int netsnmp_multiplexer_helper_handler (fBnetsnmp_mib_handlerfP * handler, fBnetsnmp_handler_registrationfP * reginfo, fBnetsnmp_agent_request_infofP * reqinfo, fBnetsnmp_request_infofP * requests)"
- .PP
- implements the multiplexer helper
- .PP
- Definition at line 57 of file multiplexer.c.
- .PP
- References netsnmp_agent_request_info_s::mode, netsnmp_mib_handler_s::myvoid, netsnmp_call_handler(), netsnmp_set_all_requests_error(), and snmp_log().
- .PP
- Referenced by netsnmp_get_multiplexer_handler().