Home Reference Source
public class | source

NetworkAdjustedTimeClusters

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

clusters: *[]

Private Members
private

Method Summary

Public Methods
public

addNAT(socket: *, socketTimeUTCOffset: *): *

public
public

deleteNAT(socket: *): boolean

Private Methods
private
private

_findNATCluster(socketTimeUTCOffset: *): *

private

_findNATClusterBySocket(socket: *): *

private
private

_timeConverter(UNIX_timestamp: *): *

Public Constructors

public constructor() source

Public Members

public clusterBest: * source

public clusters: *[] source

Private Members

private _clusterInitialization: boolean source

Public Methods

public addNAT(socket: *, socketTimeUTCOffset: *): * source

Params:

NameTypeAttributeDescription
socket *
socketTimeUTCOffset *

Return:

*

public clearClusters() source

public deleteNAT(socket: *): boolean source

Params:

NameTypeAttributeDescription
socket *

Return:

boolean

Private Methods

private _calculateBestCluster() source

private _findNATCluster(socketTimeUTCOffset: *): * source

Params:

NameTypeAttributeDescription
socketTimeUTCOffset *

Return:

*

private _findNATClusterBySocket(socket: *): * source

Params:

NameTypeAttributeDescription
socket *

Return:

*

private _refreshClusterStatus(): * source

Return:

*

private _timeConverter(UNIX_timestamp: *): * source

Params:

NameTypeAttributeDescription
UNIX_timestamp *

Return:

*