LdapTools\Utilities\TcpSocket::close PHP Метод

close() публичный Метод

Close the connection to the host.
public close ( )
    public function close()
    {
        @fclose($this->socket);
        $this->socket = false;
    }

Usage Example

Пример #1
0
 /**
  * Check if a LDAP server is up and available.
  *
  * @param string $server
  * @return bool
  */
 protected function isServerAvailable($server)
 {
     $result = $this->tcp->connect($server, $this->config->getPort(), $this->config->getConnectTimeout());
     if ($result) {
         $this->tcp->close();
     }
     return $result;
 }
All Usage Examples Of LdapTools\Utilities\TcpSocket::close