C# 클래스 SagaLib.NetIO

파일 보기 프로젝트 열기: Willyham/SagaRO2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
fullHeader bool
sock Socket

공개 메소드들

메소드 설명
Disconnect ( ) : void

Disconnect the client

NetIO ( Socket sock, Packet>.Dictionary commandTable, SagaLib.Client client, ClientManager manager ) : System

Create a new netIO class using a given socket.

NetIO ( Socket sock, Packet>.Dictionary commandTable, SagaLib.Client client, bool isgateway ) : System
SendData ( byte data, uint SessionID ) : void

Sends data, which is not yet encrypted, to the client.

SendPacket ( Packet p, bool nosession ) : void
SendPacket ( Packet p, uint SessionID ) : void

비공개 메소드들

메소드 설명
ReceiveData ( IAsyncResult ar ) : void
ReceiveSize ( IAsyncResult ar ) : void
SendPacket ( Packet p, uint SessionID, bool nosession ) : void

Sends a packet, which is not yet encrypted, to the client.

메소드 상세

Disconnect() 공개 메소드

Disconnect the client
public Disconnect ( ) : void
리턴 void

NetIO() 공개 메소드

Create a new netIO class using a given socket.
public NetIO ( Socket sock, Packet>.Dictionary commandTable, SagaLib.Client client, ClientManager manager ) : System
sock System.Net.Sockets.Socket The socket for this netIO class.
commandTable Packet>.Dictionary
client SagaLib.Client
manager ClientManager
리턴 System

NetIO() 공개 메소드

public NetIO ( Socket sock, Packet>.Dictionary commandTable, SagaLib.Client client, bool isgateway ) : System
sock System.Net.Sockets.Socket
commandTable Packet>.Dictionary
client SagaLib.Client
isgateway bool
리턴 System

SendData() 공개 메소드

Sends data, which is not yet encrypted, to the client.
public SendData ( byte data, uint SessionID ) : void
data byte The unencrypted data
SessionID uint
리턴 void

SendPacket() 공개 메소드

public SendPacket ( Packet p, bool nosession ) : void
p Packet
nosession bool
리턴 void

SendPacket() 공개 메소드

public SendPacket ( Packet p, uint SessionID ) : void
p Packet
SessionID uint
리턴 void

프로퍼티 상세

fullHeader 공개적으로 프로퍼티

public bool fullHeader
리턴 bool

sock 공개적으로 프로퍼티

public Socket sock
리턴 Socket