Wrench\Socket\Socket::getIp PHP Méthode

getIp() public méthode

Gets the IP address of the socket
public getIp ( ) : string
Résultat string
    public function getIp()
    {
        $name = $this->getName();
        if ($name) {
            return self::getNamePart($name, self::NAME_PART_IP);
        } else {
            throw new SocketException('Cannot get socket IP address');
        }
    }