C# Class SagaLib.NetIO

Mostra file Open project: Willyham/SagaRO2 Class Usage Examples

Public Properties

Property Type Description
fullHeader bool
sock Socket

Public Methods

Method Description
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

Private Methods

Method Description
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.

Method Details

Disconnect() public method

Disconnect the client
public Disconnect ( ) : void
return void

NetIO() public method

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
return System

NetIO() public method

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
return System

SendData() public method

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

SendPacket() public method

public SendPacket ( Packet p, bool nosession ) : void
p Packet
nosession bool
return void

SendPacket() public method

public SendPacket ( Packet p, uint SessionID ) : void
p Packet
SessionID uint
return void

Property Details

fullHeader public_oe property

public bool fullHeader
return bool

sock public_oe property

public Socket sock
return Socket