SNMP::close

(PHP 5 >= 5.4.0, PHP 7)
Close SNMP session
public bool SNMP::close ( void )

Frees previously allocated SNMP session object.

Returns:

Returns TRUE on success or FALSE on failure.

Examples:
SNMP::close() example
<?php
  $session = new SNMP(SNMP::VERSION_1, "127.0.0.1", "public");
  # ...
  # get, walk, etc goes here
  # ...
  $session->close();
?>

See also:

SNMP::__construct() -

doc_php
2016-02-24 16:09:57
Comments
Leave a Comment

Please login to continue.