C# Class Helios.Reactor.ReactorBase.ReactorConnectionAdapter

Wraps the IReactor itself inside a IConnection object and makes it callable directly to end users
Inheritance: IConnection
显示文件 Open project: helios-io/helios

Public Methods

Method Description
BeginReceive ( ) : void
BeginReceive ( ReceivedDataCallback callback ) : void
Close ( ) : void
Configure ( IConnectionConfig config ) : void
Dispose ( ) : void
IsOpen ( ) : bool
Open ( ) : void
OpenAsync ( ) : Task
ReactorConnectionAdapter ( ReactorBase reactor ) : System
Send ( NetworkData data ) : void
Send ( byte buffer, int index, int length, INode destination ) : void
SendAsync ( NetworkData payload ) : System.Threading.Tasks.Task
StopReceive ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

BeginReceive() public method

public BeginReceive ( ) : void
return void

BeginReceive() public method

public BeginReceive ( ReceivedDataCallback callback ) : void
callback ReceivedDataCallback
return void

Close() public method

public Close ( ) : void
return void

Configure() public method

public Configure ( IConnectionConfig config ) : void
config IConnectionConfig
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

IsOpen() public method

public IsOpen ( ) : bool
return bool

Open() public method

public Open ( ) : void
return void

OpenAsync() public method

public OpenAsync ( ) : Task
return Task

ReactorConnectionAdapter() public method

public ReactorConnectionAdapter ( ReactorBase reactor ) : System
reactor ReactorBase
return System

Send() public method

public Send ( NetworkData data ) : void
data Helios.Net.NetworkData
return void

Send() public method

public Send ( byte buffer, int index, int length, INode destination ) : void
buffer byte
index int
length int
destination INode
return void

SendAsync() public method

public SendAsync ( NetworkData payload ) : System.Threading.Tasks.Task
payload Helios.Net.NetworkData
return System.Threading.Tasks.Task

StopReceive() public method

public StopReceive ( ) : void
return void