C# Class BitSharp.Network.RemoteReceiver

Mostra file Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
Listen ( ) : void
RemoteReceiver ( Peer owner, Socket socket ) : BitSharp.Common
WaitForMessage ( bool>.Func predicate, System.TimeSpan timeout ) : Task
WaitForMessage ( bool>.Func predicate, int timeoutMilliseconds ) : Task

Private Methods

Method Description
Fail ( Exception e ) : void
HandleMessage ( byte messageStart ) : Task
ReceiveExactly ( int count ) : Task
WireDecodeMessage ( UInt32 magic ) : Task

Method Details

Listen() public method

public Listen ( ) : void
return void

RemoteReceiver() public method

public RemoteReceiver ( Peer owner, Socket socket ) : BitSharp.Common
owner Peer
socket Socket
return BitSharp.Common

WaitForMessage() public method

public WaitForMessage ( bool>.Func predicate, System.TimeSpan timeout ) : Task
predicate bool>.Func
timeout System.TimeSpan
return Task

WaitForMessage() public method

public WaitForMessage ( bool>.Func predicate, int timeoutMilliseconds ) : Task
predicate bool>.Func
timeoutMilliseconds int
return Task