C# Class OpenStory.Networking.ReceiveDescriptor

Inheritance: DescriptorBase
Afficher le fichier Open project: shoftee/OpenStory Class Usage Examples

Méthodes publiques

Méthode Description
ReceiveDescriptor ( IDescriptorContainer container ) : System

Initializes a new instance of the ReceiveDescriptor class.

StartReceive ( ) : void

Starts the receive process.

Méthodes protégées

Méthode Description
OnClosed ( ) : void

Private Methods

Méthode Description
BeginReceive ( ) : void
ClearBuffer ( ) : void
EndReceiveAsynchronous ( object sender, SocketAsyncEventArgs args ) : void

Asynchronous EndReceive, also the callback for the Completed event.

If there is more data to send, this method will call BeginReceive().

EndReceiveSynchronous ( SocketAsyncEventArgs args ) : bool

Synchronous EndReceive.

HandleTransferredData ( SocketAsyncEventArgs args ) : bool

Handles the transferred data for the operation.

This method returns on connection errors.

ResetPositions ( ) : void
SetFreshBuffer ( ) : void

Method Details

OnClosed() protected méthode

protected OnClosed ( ) : void
Résultat void

ReceiveDescriptor() public méthode

Initializes a new instance of the ReceiveDescriptor class.
/// Thrown if is . ///
public ReceiveDescriptor ( IDescriptorContainer container ) : System
container IDescriptorContainer The for the new instance.
Résultat System

StartReceive() public méthode

Starts the receive process.
/// Thrown if the event has no subscribers. ///
public StartReceive ( ) : void
Résultat void