PHP 클래스 SimplePie_Net_IPv6, ojs

저자: Alexander Merz ([email protected])
저자: elfrink at introweb dot nl
저자: Geoffrey Sneddon ([email protected])
파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 메소드들

메소드 설명
SplitV64 ( string $ip ) : array Splits an IPv6 address into the IPv6 and a possible IPv4 part
Uncompress ( string $ip ) : string Uncompresses an IPv6 address
checkIPv6 ( string $ip ) : boolean Checks an IPv6 address
removeNetmaskSpec ( string $ip ) : string Removes a possible existing netmask specification of an IP address.

메소드 상세

SplitV64() 공개 메소드

RFC 2373 allows you to note the last two parts of an IPv6 address as an IPv4 compatible address Example: 0:0:0:0:0:0:13.1.68.3 0:0:0:0:0:FFFF:129.144.52.38
public SplitV64 ( string $ip ) : array
$ip string a valid IPv6-address (hex format)
리턴 array [0] contains the IPv6 part, [1] the IPv4 part (hex format)

Uncompress() 공개 메소드

RFC 2373 allows you to compress zeros in an address to '::'. This function expects an valid IPv6 address and expands the '::' to the required zeros. Example: FF01::101 -> FF01:0:0:0:0:0:0:101 ::1 -> 0:0:0:0:0:0:0:1
public Uncompress ( string $ip ) : string
$ip string a valid IPv6-address (hex format)
리턴 string the uncompressed IPv6-address (hex format)

checkIPv6() 공개 메소드

Checks if the given IP is IPv6-compatible
public checkIPv6 ( string $ip ) : boolean
$ip string a valid IPv6-address
리턴 boolean true if $ip is an IPv6 address

removeNetmaskSpec() 공개 메소드

Removes a possible existing netmask specification of an IP address.
부터: 1.1.0
public removeNetmaskSpec ( string $ip ) : string
$ip string the (compressed) IP as Hex representation
리턴 string the IP the without netmask