This is automatic generated document for things in Swow\IpAddress class

Class IpAddress

Constants

public HAS_MASK = 2 public HAS_PORT = 1 public IPV4 = 8 public IPV4_EMBED = 4

Methods

Method __construct

public function __construct ( string $address )

Method convertToIpv4

public function convertToIpv4 ( bool $force ) : static

Method convertToMappedIpv4

public function convertToMappedIpv4 ( ) : static

Method covers

public function covers ( self $addr ) : bool

Method getFlags

public function getFlags ( ) : int

Method getFull

public function getFull ( ) : string

Method getIp

public function getIp ( ) : string

Method getMaskLen

public function getMaskLen ( ) : int

Method getPort

public function getPort ( ) : int

Method in

public function in ( self $range ) : bool

Method isIpv4OrMappedIpv4

public function isIpv4OrMappedIpv4 ( ) : bool

Method isLocal

public function isLocal ( ) : bool

Method isLoopback

public function isLoopback ( ) : bool

Method isMappedIpv4

public function isMappedIpv4 ( ) : bool

Method setFlags

public function setFlags ( int $setFlags ) : static

Method setFull

public function setFull ( string $address ) : static

Method setIp

public function setIp ( string $address ) : static

Method setMaskLen

public function setMaskLen ( int $maskLen ) : static

Method setPort

public function setPort ( int $port ) : static

Copyright 2022 the Swow contributors