IPCALC
[ class tree: IPCALC ] [ index: IPCALC ] [ all elements ]

Class: IPCALCLogic

Source Location: /IPCALC/IPCALC/IPCALC.php

Class Overview


This class is subpackage of IPCALC class, and support various api for IPCALC class


Methods


Child classes:

IPCALC
IPCALC 의 frontend Class

Class Details

[line 24]
This class is subpackage of IPCALC class, and support various api for IPCALC class



[ Top ]


Class Methods


static method broadcast [line 196]

static long broadcast( string $ip, string $mask)

Get long type broadcast address for given ip address and network mask



Tags:

access:  public


Overridden in child classes as:

IPCALC::broadcast()
주어진 IPv4 주소와 네트워크 mask로 구성된 서브넷의 브로드캐스트 주소를 반환

Parameters:

string   $ip   dotted ipv4 address or long proper address
string   $mask   dotted network mask or network prefix

[ Top ]

static method guess_netmask [line 269]

static string guess_netmask( string $start, string $end)

Get long type network mask about given start and end ip address



Tags:

return:  Dotted IPv4 address
access:  public


Overridden in child classes as:

IPCALC::guess_netmask()
시작 주소와 마지막 주소를 포함한 서브넷의 최소 mask를 반환

Parameters:

string   $start   Dotted ipv4 address or long proper address
string   $end   Dotted ipv4 address or long proper address

[ Top ]

static method guess_prefix [line 223]

static int guess_prefix( string $start, string $end)

Get decimical network prefix about given start and end ip address



Tags:

return:  Decimical network prefix
access:  public


Overridden in child classes as:

IPCALC::guess_prefix()
시작 주소와 마지막 주소를 포함한 서브넷의 prefix를 반환

Parameters:

string   $start   Dotted ipv4 address or long proper address
string   $end   Dotted ipv4 address or long proper address

[ Top ]

static method ip2long [line 71]

static long ip2long( string $ip)

Return unsigned proper address about given dotted ipv4 address

ip2long API of PHP is returnd signed long value, but this api is returned unsigned long value.




Tags:

return:  proper address of long type
access:  public


Overridden in child classes as:

IPCALC::ip2long()
Dot로 구분된 IPv4 주소를 정수형 주소로 변환

Parameters:

string   $ip   dotted ipv4 address

[ Top ]

static method long2prefix [line 148]

static int long2prefix( long $mask)

Convert long type network mask to decimical network prefix



Tags:

return:  Decimical netowrk prefix
access:  public


Parameters:

long   $mask   long type network mask

[ Top ]

static method network [line 170]

static long network( string $ip, string $mask)

Get long type network address for given ip address and network mask



Tags:

access:  public


Overridden in child classes as:

IPCALC::network()
주어진 IPv4 주소와 네트워크 mask로 구성된 서브넷의 네트워크 주소를 반환

Parameters:

string   $ip   dotted ipv4 address or long proper address
string   $mask   dotted network mask or network prefix

[ Top ]

static method prefix2long [line 112]

static long prefix2long( int $prefix)

Convert network prefix to long type network mask



Tags:

return:  long type network maks or false
access:  public


Parameters:

int   $prefix   decimical network prefix

[ Top ]

static method valid_ipv4_addr [line 84]

static boolean valid_ipv4_addr( string $ip)

Check given adddress is valid or not



Tags:

access:  public


Overridden in child classes as:

IPCALC::valid_ipv4_addr()
인자로 주어진 값이 정상적인 IPv4 주소인지를 체크

Parameters:

string   $ip   dotted ipv4 address

[ Top ]


Documentation generated on Tue, 14 May 2019 02:00:08 +0900 by phpDocumentor 1.4.4