TeamSpeak3/Adapter/Blacklist.php
public function isBlacklisted($host)
    {
        if (ip2long($host) === false) {
            $addr = gethostbyname($host);

            if ($addr == $host) {
                throw new Ts3Exception("unable to resolve IPv4 address (" . $host . ")");
            }

            $host = $addr;
        }

        $this->getTransport()->send("ip4:" . $host);
        $repl = $this->getTransport()->read(1);
        $this->getTransport()->disconnect();

        if (!count($repl)) {
            return false;
        }

        return ($repl->toInt()) ? false : true;
    }
public function isBlacklisted($host)
    {
        if (ip2long($host) === false) {
            $addr = gethostbyname($host);

            if ($addr == $host) {
                throw new Ts3Exception("unable to resolve IPv4 address (" . $host . ")");
            }

            $host = $addr;
        }

        $this->getTransport()->send("ip4:" . $host);
        $repl = $this->getTransport()->read(1);
        $this->getTransport()->disconnect();

        if (!count($repl)) {
            return false;
        }

        return ($repl->toInt()) ? false : true;
    }
public function isBlacklisted ( $ host ) { if ( ip2long ( $ host ) === false ) { $ addr = gethostbyname ( $ host ) ; if ( $ addr == $ host ) { throw new Ts3Exception ( "unable to resolve IPv4 address (" . $ host . ")" ) ; } $ host = $ addr ; } $ this -> getTransport ( ) -> send ( "ip4:" . $ host ) ; $ repl = $ this -> getTransport ( ) -> read ( 1 ) ; $ this -> getTransport ( ) -> disconnect ( ) ; if ( ! count ( $ repl ) ) { return false ; } return ( $ repl -> toInt ( ) ) ? false : true ; }
Returns TRUE if a specified $host IP address is currently blacklisted.

@param  string $host
@throws Ts3Exception
@return boolean
Returns TRUE if a specified $host IP address is currently blacklisted .