SnmpKit.SnmpMgr.EngineV2 (snmpkit v0.6.3)
Pure response correlator for SNMP operations.
This engine focuses solely on correlating SNMP responses back to their originating processes. It does not handle sending - that is done directly by Tasks using the shared socket from SocketManager.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets engine statistics and metrics.
Gets the number of pending requests.
Registers a request for response correlation.
Starts the Engine response correlator.
Gracefully shuts down the engine.
Unregisters a request (used when caller times out locally).
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Gets engine statistics and metrics.
Gets the number of pending requests.
Registers a request for response correlation.
Parameters
engine
- Engine PID or namerequest_id
- Unique request identifiercaller_pid
- Process to send response totimeout_ms
- Timeout in milliseconds (optional)
Examples
SnmpKit.SnmpMgr.EngineV2.register_request(engine, 12345, self(), 5000)
Starts the Engine response correlator.
Options
:name
- Process name (default: MODULE)
Gracefully shuts down the engine.
Unregisters a request (used when caller times out locally).
Parameters
engine
- Engine PID or namerequest_id
- Request identifier to unregister