C# Класс OpenStory.Server.Processing.ServerSession

Represents an encrypted network session.
Наследование: OpenStory.Networking.EncryptedNetworkSession, IServerSession
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Push ( ) : void

Starts the asynchronous packet sending process.

ServerSession ( IPacketCodeTable packetCodeTable ) : System

Initializes a new instance of the ServerSession class.

Start ( EndpointCrypto endpointCrypto, HandshakeInfo handshakeInfo ) : void

Приватные методы

Метод Описание
ConstructHandshakePacket ( HandshakeInfo handshakeInfo ) : byte[]
ConstructHandshakePacketContent ( HandshakeInfo handshakeInfo ) : byte[]
ContinuePushAsynchronous ( IAsyncResult result ) : void

Continues packet processing after a successful asynchronous push is complete.

HandlePacketReceived ( object sender, PacketReceivedEventArgs e ) : void
OnReadyForPush ( ) : void
StartPushing ( ) : void
TryContinuePushSynchronous ( byte &packet ) : bool

Attempts to retrieve another packet for processing.

If there were no packets to process, packet will be and isPushing will be set to false.

TryPushAsync ( byte packet ) : bool

Raises the PacketProcessing event for the specified packet data, if possible asynchronously.

Описание методов

Push() публичный Метод

Starts the asynchronous packet sending process.
public Push ( ) : void
Результат void

ServerSession() публичный Метод

Initializes a new instance of the ServerSession class.
public ServerSession ( IPacketCodeTable packetCodeTable ) : System
packetCodeTable IPacketCodeTable
Результат System

Start() публичный Метод

/// Thrown if or are . ///
public Start ( EndpointCrypto endpointCrypto, HandshakeInfo handshakeInfo ) : void
endpointCrypto OpenStory.Cryptography.EndpointCrypto
handshakeInfo OpenStory.Common.IO.HandshakeInfo
Результат void