C# Class Turn.Server.AllocationsPool

Afficher le fichier Open project: vf1/turnserver Class Usage Examples

Méthodes publiques

Méthode Description
AllocationsPool ( ) : System
Clear ( ) : void
Get ( ConnectionId connectionId ) : Allocation
Get ( ServerEndPoint allocated ) : Allocation
GetByPeer ( ServerEndPoint local, IPEndPoint remote ) : Allocation
Remove ( Allocation oldAllocation, RemoveReason reason ) : void
Replace ( Allocation allocation ) : void

Private Methods

Méthode Description
GetKey ( ServerEndPoint local, IPEndPoint remote ) : string
OnRemoved ( Allocation allocation, RemoveReason reason ) : void
Timer_EventHandler ( Object stateInfo ) : void

Method Details

AllocationsPool() public méthode

public AllocationsPool ( ) : System
Résultat System

Clear() public méthode

public Clear ( ) : void
Résultat void

Get() public méthode

public Get ( ConnectionId connectionId ) : Allocation
connectionId ConnectionId
Résultat Allocation

Get() public méthode

public Get ( ServerEndPoint allocated ) : Allocation
allocated ServerEndPoint
Résultat Allocation

GetByPeer() public méthode

public GetByPeer ( ServerEndPoint local, IPEndPoint remote ) : Allocation
local ServerEndPoint
remote System.Net.IPEndPoint
Résultat Allocation

Remove() public méthode

public Remove ( Allocation oldAllocation, RemoveReason reason ) : void
oldAllocation Allocation
reason RemoveReason
Résultat void

Replace() public méthode

public Replace ( Allocation allocation ) : void
allocation Allocation
Résultat void