phpday 2027 - Call for Papers

SNMP::close

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

SNMP::close — Cerrar sesión SNMP

Descripción

public function SNMP::close(): bool

Libera previamente asignado un objeto de sesión SNMP.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

Ejemplos

Ejemplo #1 Ejemplo de SNMP::close()

<?php
  $session = new SNMP(SNMP::VERSION_1, "127.0.0.1", "public");
  # ...
  # get, walk, etc va aquí
  # ...
  $session->close();
?>

Véase también

  • SNMP::__construct() - Crea una instancia SNMP que representa la sesión con el agente remoto SNMP

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top