C# Class OpenStory.Networking.ReceiveDescriptor

Inheritance: DescriptorBase
ファイルを表示 Open project: shoftee/OpenStory Class Usage Examples

Public Methods

Method Description
ReceiveDescriptor ( IDescriptorContainer container ) : System

Initializes a new instance of the ReceiveDescriptor class.

StartReceive ( ) : void

Starts the receive process.

Protected Methods

Method Description
OnClosed ( ) : void

Private Methods

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

protected OnClosed ( ) : void
return void

ReceiveDescriptor() public method

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

StartReceive() public method

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