C# Class Dwarrowdelf.DirectConnection

Inheritance: System.MarshalByRefObject, IConnection
Exibir arquivo Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
Connect ( IGame game ) : DirectConnection
DirectConnection ( ) : System
DirectConnection ( DirectConnection remote ) : System
Disconnect ( ) : void
Dispose ( ) : void
GetMessageAsync ( ) : Task
Send ( Message msg ) : void
TryGetMessage ( Message &msg ) : bool

Private Methods

Method Description
Dispose ( bool disposing ) : void
Enqueue ( Message msg ) : void
RemoteDisconnect ( ) : void
SetRemote ( DirectConnection remote ) : void

Method Details

Connect() public static method

public static Connect ( IGame game ) : DirectConnection
game IGame
return DirectConnection

DirectConnection() public method

public DirectConnection ( ) : System
return System

DirectConnection() public method

public DirectConnection ( DirectConnection remote ) : System
remote DirectConnection
return System

Disconnect() public method

public Disconnect ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetMessageAsync() public method

public GetMessageAsync ( ) : Task
return Task

Send() public method

public Send ( Message msg ) : void
msg Message
return void

TryGetMessage() public method

public TryGetMessage ( Message &msg ) : bool
msg Message
return bool