C# Class Hie.Core.Endpoints.TcpReceiveEndpoint

Inheritance: EndpointBase
Mostrar archivo Open project: NiclasOlofsson/HIE Class Usage Examples

Public Properties

Property Type Description
MessageSent System.Threading.ManualResetEvent

Protected Properties

Property Type Description
_hostService IApplicationHost

Public Methods

Method Description
Initialize ( IApplicationHost host, IOptions options ) : void
ProcessMessage ( IEndpoint endpoint, byte data ) : void
StartProcessing ( ) : void
StopProcessing ( ) : void
TcpReceiveEndpoint ( ) : System
WaitForMessage ( int milisecondsTimeout = 1000 ) : void

Private Methods

Method Description
AcceptCallback ( IAsyncResult ar ) : void
ByteArrayCompare ( byte a1, byte a2 ) : bool
CheckDelimiter ( byte delimiters, MemoryStream stream ) : bool
ProcessIncomingStream ( int bytesRead, StateObject state ) : bool
ReadCallback ( IAsyncResult ar ) : void
SubmitPayloadToPipeline ( byte data ) : void
TcpReceiveEndpoint ( IPEndPoint endpoint = null, TcpReceieveOptions options = null ) : System

Method Details

Initialize() public method

public Initialize ( IApplicationHost host, IOptions options ) : void
host IApplicationHost
options IOptions
return void

ProcessMessage() public method

public ProcessMessage ( IEndpoint endpoint, byte data ) : void
endpoint IEndpoint
data byte
return void

StartProcessing() public method

public StartProcessing ( ) : void
return void

StopProcessing() public method

public StopProcessing ( ) : void
return void

TcpReceiveEndpoint() public method

public TcpReceiveEndpoint ( ) : System
return System

WaitForMessage() public method

public WaitForMessage ( int milisecondsTimeout = 1000 ) : void
milisecondsTimeout int
return void

Property Details

MessageSent public_oe property

public ManualResetEvent,System.Threading MessageSent
return System.Threading.ManualResetEvent

_hostService protected_oe property

protected IApplicationHost _hostService
return IApplicationHost