Module Netsnmp_async.Connection
val connect : Connection_info.t -> t IO.t
connect
creates a connection to a peer based on the information passed inConnection_info.t
. This andclose
should be called as a pair.
val with_connection : Connection_info.t -> f:(t -> 'a) -> 'a IO.t
with_connection
- connect to the remote agent using the supplied credentials and then call the functionf
with the session. Closes the session in all cases before returning