NetAddress
Static Method Summary
Static Public Methods | ||
public static |
fromIP(ip: string, reliable: boolean): NetAddress |
|
public static |
unserialize(buf: SerialBuffer): NetAddress |
Constructor Summary
Public Constructor | ||
public |
constructor(type: NetAddress.Type, ipArray: Uint8Array, reliable: boolean) |
Member Summary
Public Members | ||
public get |
ip: Uint8Array |
|
public get |
reliable: boolean |
|
public get |
serializedSize: number |
|
public get |
type: NetAddress.Type |
Method Summary
Public Methods | ||
public |
equals(o: NetAddress): boolean |
|
public |
hashCode(): * |
|
public |
isIPv4(): boolean |
|
public |
isIPv6(): boolean |
|
public |
isPrivate(): boolean |
|
public |
isPseudo(): boolean |
|
public |
serialize(buf: SerialBuffer): SerialBuffer |
|
public |
subnet(bitCount: number): NetAddress |
|
public |
toString(): string |
Static Public Methods
public static fromIP(ip: string, reliable: boolean): NetAddress source
Params:
Name | Type | Attribute | Description |
ip | string | ||
reliable | boolean |
public static unserialize(buf: SerialBuffer): NetAddress source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
Public Constructors
public constructor(type: NetAddress.Type, ipArray: Uint8Array, reliable: boolean) source
Params:
Name | Type | Attribute | Description |
type | NetAddress.Type | ||
ipArray | Uint8Array | ||
reliable | boolean |
Public Members
public get ip: Uint8Array source
public get reliable: boolean source
public get serializedSize: number source
public get type: NetAddress.Type source
Public Methods
public equals(o: NetAddress): boolean source
Params:
Name | Type | Attribute | Description |
o | NetAddress |
Return:
boolean |
public serialize(buf: SerialBuffer): SerialBuffer source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
|
public subnet(bitCount: number): NetAddress source
Params:
Name | Type | Attribute | Description |
bitCount | number |