C# Class Medusa.Network.Service.TcpClientMessageService

Inheritance: IDisposable
Datei anzeigen Open project: fjz13/Medusa Class Usage Examples

Public Methods

Method Description
BeginConnect ( ) : TcpClientMessageService
Close ( ) : TcpClientMessageService
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

StartHeartbeat ( ) : void
TcpClientMessageService ( IPAddress remoteIP, int remotePort ) : System
TcpClientMessageService ( IPAddress remoteIPAddress, int remotePort, IPEndPoint localEndPoint ) : System
TcpClientMessageService ( IPEndPoint remoteEndPoint ) : System
TcpClientMessageService ( IPEndPoint remoteEndPoint, IPEndPoint localEndPoint ) : System
TcpClientMessageService ( string remoteHostName, int remotePort ) : System
TcpClientMessageService ( string remoteHostName, int remotePort, IPEndPoint localEndPoint ) : System
Write ( IMessage message ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

OnHandleConnected ( ) : void
OnHandleDisconnected ( ) : void
OnHandleError ( Exception e ) : void
OnHandleRead ( ) : void
OnHandleWrite ( IMessage message ) : byte[]
OnResetBuffer ( ) : void

Private Methods

Method Description
OnConnectResult ( IAsyncResult ar ) : void
OnHeartbeat ( object state ) : void
OnReadResult ( IAsyncResult ar ) : void
OnWriteResult ( IAsyncResult ar ) : void

Method Details

BeginConnect() public method

public BeginConnect ( ) : TcpClientMessageService
return TcpClientMessageService

Close() public method

public Close ( ) : TcpClientMessageService
return TcpClientMessageService

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed /// and unmanaged resources; false /// to release only unmanaged resources. ///
return void

OnHandleConnected() protected method

protected OnHandleConnected ( ) : void
return void

OnHandleDisconnected() protected method

protected OnHandleDisconnected ( ) : void
return void

OnHandleError() protected method

protected OnHandleError ( Exception e ) : void
e System.Exception
return void

OnHandleRead() protected method

protected OnHandleRead ( ) : void
return void

OnHandleWrite() protected method

protected OnHandleWrite ( IMessage message ) : byte[]
message IMessage
return byte[]

OnResetBuffer() protected method

protected OnResetBuffer ( ) : void
return void

StartHeartbeat() public method

public StartHeartbeat ( ) : void
return void

TcpClientMessageService() public method

public TcpClientMessageService ( IPAddress remoteIP, int remotePort ) : System
remoteIP System.Net.IPAddress
remotePort int
return System

TcpClientMessageService() public method

public TcpClientMessageService ( IPAddress remoteIPAddress, int remotePort, IPEndPoint localEndPoint ) : System
remoteIPAddress System.Net.IPAddress
remotePort int
localEndPoint System.Net.IPEndPoint
return System

TcpClientMessageService() public method

public TcpClientMessageService ( IPEndPoint remoteEndPoint ) : System
remoteEndPoint System.Net.IPEndPoint
return System

TcpClientMessageService() public method

public TcpClientMessageService ( IPEndPoint remoteEndPoint, IPEndPoint localEndPoint ) : System
remoteEndPoint System.Net.IPEndPoint
localEndPoint System.Net.IPEndPoint
return System

TcpClientMessageService() public method

public TcpClientMessageService ( string remoteHostName, int remotePort ) : System
remoteHostName string
remotePort int
return System

TcpClientMessageService() public method

public TcpClientMessageService ( string remoteHostName, int remotePort, IPEndPoint localEndPoint ) : System
remoteHostName string
remotePort int
localEndPoint System.Net.IPEndPoint
return System

Write() public method

public Write ( IMessage message ) : void
message IMessage
return void