C# Class Aura.Shared.Network.BaseClient

Base client, for specialized client classes in the servers.
Show file Open project: aura-project/aura

Public Methods

Method Description
CleanUp ( ) : void

Takes care of client's remains (saving chars, etc)

DecodeBuffer ( byte buffer ) : void
Kill ( ) : void

Kills client connection.

Send ( Aura.Shared.Network.Packet packet ) : void

Builds buffer from packet and sends it.

Send ( byte buffer ) : void

Sends buffer (duh).

Protected Methods

Method Description
BaseClient ( ) : System
BuildPacket ( Aura.Shared.Network.Packet packet ) : byte[]

Builds packet, appending the overall header and checksum.

EncodeBuffer ( byte buffer ) : void

Encodes buffer.

Method Details

BaseClient() protected method

protected BaseClient ( ) : System
return System

BuildPacket() protected abstract method

Builds packet, appending the overall header and checksum.
protected abstract BuildPacket ( Aura.Shared.Network.Packet packet ) : byte[]
packet Aura.Shared.Network.Packet
return byte[]

CleanUp() public method

Takes care of client's remains (saving chars, etc)
public CleanUp ( ) : void
return void

DecodeBuffer() public abstract method

public abstract DecodeBuffer ( byte buffer ) : void
buffer byte
return void

EncodeBuffer() protected abstract method

Encodes buffer.
protected abstract EncodeBuffer ( byte buffer ) : void
buffer byte
return void

Kill() public method

Kills client connection.
public Kill ( ) : void
return void

Send() public method

Builds buffer from packet and sends it.
public Send ( Aura.Shared.Network.Packet packet ) : void
packet Aura.Shared.Network.Packet
return void

Send() public method

Sends buffer (duh).
public Send ( byte buffer ) : void
buffer byte
return void