C# Class Courier.Core.Tcp.TcpPipe

Inheritance: IPipe, IHandler
Show file Open project: ccidral/courier Class Usage Examples

Public Methods

Method Description
AddHandler ( IHandler handler ) : void
HandleMessage ( object message, IPipe pipe ) : void
Send ( object message ) : IDelivery
TcpPipe ( string host, int port ) : System
TcpPipe ( string host, int port, IFormatter formatter ) : System

Private Methods

Method Description
TcpPipe ( TcpClient client, IFormatter formatter ) : System

Method Details

AddHandler() public method

public AddHandler ( IHandler handler ) : void
handler IHandler
return void

HandleMessage() public method

public HandleMessage ( object message, IPipe pipe ) : void
message object
pipe IPipe
return void

Send() public method

public Send ( object message ) : IDelivery
message object
return IDelivery

TcpPipe() public method

public TcpPipe ( string host, int port ) : System
host string
port int
return System

TcpPipe() public method

public TcpPipe ( string host, int port, IFormatter formatter ) : System
host string
port int
formatter IFormatter
return System