C# Class Helios.Tests.DummyConnection

Fake connection used for testing purposes
Inheritance: IConnection
Show file Open project: helios-io/helios

Public Methods

Method Description
BeginReceive ( ) : void
BeginReceive ( ReceivedDataCallback callback ) : void
Close ( ) : void
Configure ( IConnectionConfig config ) : void
Dispose ( ) : void
DummyConnection ( IByteBufAllocator allocator ) : System
IsOpen ( ) : bool
Open ( ) : void
OpenAsync ( ) : Task
Send ( NetworkData data ) : void
Send ( byte buffer, int index, int length, INode destination ) : void
StopReceive ( ) : 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

DummyConnection() public method

public DummyConnection ( IByteBufAllocator allocator ) : System
allocator IByteBufAllocator
return System

IsOpen() public method

public IsOpen ( ) : bool
return bool

Open() public method

public Open ( ) : void
return void

OpenAsync() public method

public OpenAsync ( ) : Task
return Task

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

StopReceive() public method

public StopReceive ( ) : void
return void