C# 클래스 Medusa.Network.Service.TcpClientMessageService

상속: IDisposable
파일 보기 프로젝트 열기: fjz13/Medusa 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
OnConnectResult ( IAsyncResult ar ) : void
OnHeartbeat ( object state ) : void
OnReadResult ( IAsyncResult ar ) : void
OnWriteResult ( IAsyncResult ar ) : void

메소드 상세

BeginConnect() 공개 메소드

public BeginConnect ( ) : TcpClientMessageService
리턴 TcpClientMessageService

Close() 공개 메소드

public Close ( ) : TcpClientMessageService
리턴 TcpClientMessageService

Dispose() 공개 메소드

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

Dispose() 보호된 메소드

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. ///
리턴 void

OnHandleConnected() 보호된 메소드

protected OnHandleConnected ( ) : void
리턴 void

OnHandleDisconnected() 보호된 메소드

protected OnHandleDisconnected ( ) : void
리턴 void

OnHandleError() 보호된 메소드

protected OnHandleError ( Exception e ) : void
e System.Exception
리턴 void

OnHandleRead() 보호된 메소드

protected OnHandleRead ( ) : void
리턴 void

OnHandleWrite() 보호된 메소드

protected OnHandleWrite ( IMessage message ) : byte[]
message IMessage
리턴 byte[]

OnResetBuffer() 보호된 메소드

protected OnResetBuffer ( ) : void
리턴 void

StartHeartbeat() 공개 메소드

public StartHeartbeat ( ) : void
리턴 void

TcpClientMessageService() 공개 메소드

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

TcpClientMessageService() 공개 메소드

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

TcpClientMessageService() 공개 메소드

public TcpClientMessageService ( IPEndPoint remoteEndPoint ) : System
remoteEndPoint System.Net.IPEndPoint
리턴 System

TcpClientMessageService() 공개 메소드

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

TcpClientMessageService() 공개 메소드

public TcpClientMessageService ( string remoteHostName, int remotePort ) : System
remoteHostName string
remotePort int
리턴 System

TcpClientMessageService() 공개 메소드

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

Write() 공개 메소드

public Write ( IMessage message ) : void
message IMessage
리턴 void