src/LdapTools/Connection/LdapServerPool.php
public function isServerAvailable($server)
    {
        $result = $this->tcp->connect($server, $this->config->getPort(), $this->config->getConnectTimeout());
        if ($result) {
            $this->tcp->close();
        }

        return $result;
    }
public function isServerAvailable($server)
    {
        $result = $this->tcp->connect($server, $this->config->getPort(), $this->config->getConnectTimeout());
        if ($result) {
            $this->tcp->close();
        }

        return $result;
    }
public function isServerAvailable ( $ server ) { $ result = $ this -> tcp -> connect ( $ server , $ this -> config -> getPort ( ) , $ this -> config -> getConnectTimeout ( ) ) ; if ( $ result ) { $ this -> tcp -> close ( ) ; } return $ result ; }
Check if a LDAP server is up and available.

@param string $server
@return bool
Check if a LDAP server is up and available .