Home Reference Source Test
public class | source

WssPeerAddress

Extends:

PeerAddressWsBasePeerAddress → WssPeerAddress

Static Method Summary

Static Public Methods
public static

seed(host: string, port: number, publicKeyHex: string): WssPeerAddress

public static

Constructor Summary

Public Constructor
public

constructor(services: number, timestamp: number, netAddress: NetAddress, publicKey: PublicKey, distance: number, host: string, port: number, signature: Signature)

Method Summary

Public Methods
public

equals(o: PeerAddress | *): boolean

public

Inherited Summary

From class PeerAddress
public static
public get

distance: number

public set

distance: number

public get
public set
public get
public get

protocol: number

public get
public get
public get

serializedSize: number

public get

services: number

public get
public set
public get

timestamp: number

public

equals(o: PeerAddress | *): boolean

public

exceedsAge(): boolean

public

hashCode(): string

public

isSeed(): boolean

public
public
public

verifySignature(): boolean

From class WsBasePeerAddress
public static
public get

host: string

public get

port: number

public get

protocolPrefix: string

public get
public get

serializedSize: number

public

equals(o: PeerAddress | *): boolean

public

globallyReachable(): boolean

public

hashCode(): string

public
public
public

toSeedString(): string

public

toString(): string

Static Public Methods

public static seed(host: string, port: number, publicKeyHex: string): WssPeerAddress source

Params:

NameTypeAttributeDescription
host string
port number
publicKeyHex string
  • optional

Return:

WssPeerAddress

public static unserialize(buf: SerialBuffer): WssPeerAddress source

Override:

PeerAddress#unserialize

Params:

NameTypeAttributeDescription
buf SerialBuffer

Return:

WssPeerAddress

Public Constructors

public constructor(services: number, timestamp: number, netAddress: NetAddress, publicKey: PublicKey, distance: number, host: string, port: number, signature: Signature) source

Override:

WsBasePeerAddress#constructor

Params:

NameTypeAttributeDescription
services number
timestamp number
netAddress NetAddress
publicKey PublicKey
distance number
host string
port number
signature Signature
  • optional

Public Methods

public equals(o: PeerAddress | *): boolean source

Override:

WsBasePeerAddress#equals

Params:

NameTypeAttributeDescription
o PeerAddress | *

Return:

boolean

public withoutId(): WssPeerAddress source

Return:

WssPeerAddress