C# Class SOE.Core.SOEClient

Show file Open project: Joshsora/LibSOE Class Usage Examples

Public Properties

Property Type Description
Client System.Net.IPEndPoint
DataChannel SOEDataChannel
Manager SOEConnectionManager
Server SOEServer

Public Methods

Method Description
Compress ( byte data ) : byte[]
Disconnect ( ushort reason, bool client = false ) : void
Encrypt ( byte data ) : byte[]
GetAppendedCRC32 ( byte packet ) : byte[]
GetBufferSize ( ) : uint
GetCRC32Checksum ( byte packet ) : uint
GetCRCLength ( ) : uint
GetCRCSeed ( ) : uint
GetClientAddress ( ) : IPAddress
GetClientID ( ) : int
GetLastInteraction ( ) : int
GetNextSequenceNumber ( ) : ushort
GetSessionID ( ) : uint
HasSession ( ) : bool
IsCompressable ( ) : bool
IsEncrypted ( ) : bool
ReceiveMessage ( byte rawMessage ) : void
SOEClient ( SOEConnectionManager manager, IPEndPoint client ) : System
SendMessage ( SOEMessage message ) : void
SendPacket ( SOEPacket packet ) : void
SetClientID ( int clientId ) : void
SetCompressable ( bool compressable ) : void
SetEncryptable ( bool encryptable ) : void
StartSession ( uint crcLength, uint sessionId, uint udpBufferSize ) : void
ToggleEncryption ( ) : void

Private Methods

Method Description
Interact ( ) : void

Method Details

Compress() public method

public Compress ( byte data ) : byte[]
data byte
return byte[]

Disconnect() public method

public Disconnect ( ushort reason, bool client = false ) : void
reason ushort
client bool
return void

Encrypt() public method

public Encrypt ( byte data ) : byte[]
data byte
return byte[]

GetAppendedCRC32() public method

public GetAppendedCRC32 ( byte packet ) : byte[]
packet byte
return byte[]

GetBufferSize() public method

public GetBufferSize ( ) : uint
return uint

GetCRC32Checksum() public method

public GetCRC32Checksum ( byte packet ) : uint
packet byte
return uint

GetCRCLength() public method

public GetCRCLength ( ) : uint
return uint

GetCRCSeed() public method

public GetCRCSeed ( ) : uint
return uint

GetClientAddress() public method

public GetClientAddress ( ) : IPAddress
return System.Net.IPAddress

GetClientID() public method

public GetClientID ( ) : int
return int

GetLastInteraction() public method

public GetLastInteraction ( ) : int
return int

GetNextSequenceNumber() public method

public GetNextSequenceNumber ( ) : ushort
return ushort

GetSessionID() public method

public GetSessionID ( ) : uint
return uint

HasSession() public method

public HasSession ( ) : bool
return bool

IsCompressable() public method

public IsCompressable ( ) : bool
return bool

IsEncrypted() public method

public IsEncrypted ( ) : bool
return bool

ReceiveMessage() public method

public ReceiveMessage ( byte rawMessage ) : void
rawMessage byte
return void

SOEClient() public method

public SOEClient ( SOEConnectionManager manager, IPEndPoint client ) : System
manager SOEConnectionManager
client System.Net.IPEndPoint
return System

SendMessage() public method

public SendMessage ( SOEMessage message ) : void
message SOEMessage
return void

SendPacket() public method

public SendPacket ( SOEPacket packet ) : void
packet SOE.Interfaces.SOEPacket
return void

SetClientID() public method

public SetClientID ( int clientId ) : void
clientId int
return void

SetCompressable() public method

public SetCompressable ( bool compressable ) : void
compressable bool
return void

SetEncryptable() public method

public SetEncryptable ( bool encryptable ) : void
encryptable bool
return void

StartSession() public method

public StartSession ( uint crcLength, uint sessionId, uint udpBufferSize ) : void
crcLength uint
sessionId uint
udpBufferSize uint
return void

ToggleEncryption() public method

public ToggleEncryption ( ) : void
return void

Property Details

Client public property

public IPEndPoint,System.Net Client
return System.Net.IPEndPoint

DataChannel public property

public SOEDataChannel,SOE.Core DataChannel
return SOEDataChannel

Manager public property

public SOEConnectionManager,SOE.Core Manager
return SOEConnectionManager

Server public property

public SOEServer,SOE.Core Server
return SOEServer