C# Class Turn.Server.TurnServer

Mostrar archivo Open project: vf1/turnserver Class Usage Examples

Public Methods

Method Description
EnableLog ( string fileName ) : void
Start ( ) : void
Stop ( ) : void
TurnServer ( ILogger logger ) : System

Private Methods

Method Description
Allocation_Removed ( Allocation allocation, AllocationsPool reason ) : void
GetBuffer ( ServerEndPoint local, IPEndPoint remote, int length, ServerAsyncEventArgs &e, int &offset ) : void
GetErrorResponse ( ErrorCode errorCode, SocketAsyncEventArgs e ) : Turn.Message.TurnMessage
PeerSendAsync_Completed ( Socket socket, SocketAsyncEventArgs e ) : void
PeerServer_Received ( ServersManager s, BaseConnection с, ServerAsyncEventArgs &e ) : bool
PeerServer_ServerAdded ( object sender, ServerChangeEventArgs e ) : void
PeerServer_ServerRemoved ( object sender, ServerChangeEventArgs e ) : void
ProcessAllocateRequest ( Allocation &allocation, Turn.Message.TurnMessage request, ServerEndPoint local, IPEndPoint remote ) : Turn.Message.TurnMessage
ProcessSendRequest ( Allocation allocation, Turn.Message.TurnMessage request, ServerAsyncEventArgs &e ) : Turn.Message.TurnMessage
ProcessSetActiveDestinationRequest ( Allocation allocation, Turn.Message.TurnMessage request, IPEndPoint reflexEndPoint ) : Turn.Message.TurnMessage
SendTurn ( Turn.Message.TurnMessage message, ServerEndPoint local, IPEndPoint remote ) : void
SendTurnAsync_Completed ( Socket socket, SocketAsyncEventArgs e ) : void
TurnServer_NewConnection ( ServersManager s, TurnConnection c ) : void
TurnServer_PeerDataReceived ( ServerAsyncEventArgs &e ) : void
TurnServer_Received ( ServersManager s, TurnConnection c, ServerAsyncEventArgs &e ) : bool
TurnServer_ServerAdded ( object sender, ServerChangeEventArgs e ) : void
TurnServer_ServerRemoved ( object sender, ServerChangeEventArgs e ) : void
TurnServer_TurnDataReceived ( ServerAsyncEventArgs &e ) : void

Method Details

EnableLog() public method

public EnableLog ( string fileName ) : void
fileName string
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TurnServer() public method

public TurnServer ( ILogger logger ) : System
logger ILogger
return System