Home Reference Source Test
public class | source

NetAddress

Static Method Summary

Static Public Methods
public static

fromIP(ip: string, reliable: boolean): NetAddress

public static

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
public

subnet(bitCount: number): NetAddress

public

toString(): string

Static Public Methods

public static fromIP(ip: string, reliable: boolean): NetAddress source

Params:

NameTypeAttributeDescription
ip string
reliable boolean

Return:

NetAddress

public static unserialize(buf: SerialBuffer): NetAddress source

Params:

NameTypeAttributeDescription
buf SerialBuffer

Return:

NetAddress

Public Constructors

public constructor(type: NetAddress.Type, ipArray: Uint8Array, reliable: boolean) source

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
o NetAddress

Return:

boolean

public hashCode(): * source

Return:

*

public isIPv4(): boolean source

Return:

boolean

public isIPv6(): boolean source

Return:

boolean

public isPrivate(): boolean source

Return:

boolean

public isPseudo(): boolean source

Return:

boolean

public serialize(buf: SerialBuffer): SerialBuffer source

Params:

NameTypeAttributeDescription
buf SerialBuffer
  • optional
  • nullable: true

Return:

SerialBuffer

public subnet(bitCount: number): NetAddress source

Params:

NameTypeAttributeDescription
bitCount number

Return:

NetAddress

public toString(): string source

Return:

string