C# 클래스 EpServerEngine.cs.IocpTcpClient

A IOCP TCP Client class.
상속: ThreadEx, INetworkClient, IDisposable
파일 보기 프로젝트 열기: juhgiyo/EpServerEngine.cs 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void
onConnected void
onReceived void
onSent void
startReceive void

공개 메소드들

메소드 설명
Connect ( EpServerEngine.cs.ClientOps ops ) : void

Connect to the server with given options

Disconnect ( ) : void

Disconnect from the server

Dispose ( ) : void
IocpTcpClient ( ) : System

Default constructor

IocpTcpClient ( IocpTcpClient b ) : System

Default copy constructor

Send ( EpServerEngine.cs.Packet packet ) : void

Send given packet to the server

Send ( byte data ) : void

Send given data to the server

Send ( byte data, int offset, int dataSize ) : void

Send given data to the server

보호된 메소드들

메소드 설명
execute ( ) : void

Make the connection to the server and start receiving

비공개 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void
onConnected ( IAsyncResult result ) : void

Connection callback function

onReceived ( IAsyncResult result ) : void

Receive callback function

onSent ( IAsyncResult result ) : void

Send callback function

startReceive ( ) : void

Start to receive packet from the server

메소드 상세

Connect() 공개 메소드

Connect to the server with given options
public Connect ( EpServerEngine.cs.ClientOps ops ) : void
ops EpServerEngine.cs.ClientOps options for client
리턴 void

Disconnect() 공개 메소드

Disconnect from the server
public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

IocpTcpClient() 공개 메소드

Default constructor
public IocpTcpClient ( ) : System
리턴 System

IocpTcpClient() 공개 메소드

Default copy constructor
public IocpTcpClient ( IocpTcpClient b ) : System
b IocpTcpClient the object to copy from
리턴 System

Send() 공개 메소드

Send given packet to the server
public Send ( EpServerEngine.cs.Packet packet ) : void
packet EpServerEngine.cs.Packet packet to send
리턴 void

Send() 공개 메소드

Send given data to the server
public Send ( byte data ) : void
data byte data in byte array
리턴 void

Send() 공개 메소드

Send given data to the server
public Send ( byte data, int offset, int dataSize ) : void
data byte data in byte array
offset int offset in bytes
dataSize int data size in bytes
리턴 void

execute() 보호된 메소드

Make the connection to the server and start receiving
protected execute ( ) : void
리턴 void