C# Класс OpenStory.Networking.DescriptorBase

Represents an abstract asynchronous network operation buffer.
Наследование: IDisposable
Показать файл Открыть проект

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

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

Closes the DescriptorBase instance.

Dispose ( ) : void

Защищенные методы

Метод Описание
DescriptorBase ( IDescriptorContainer container ) : System

Initializes a new instance of the DescriptorBase class.

This constructor initializes the Container and SocketArgs properties.

Dispose ( bool disposing ) : void

Called when the instance is being released.

OnClosed ( ) : void

A hook to the end of the publicly exposed Close() method.

OnError ( SocketAsyncEventArgs args ) : void

Raises the Error event and closes the connection.

The event will be raised only if it has subscribers and the SocketAsyncEventArgs.SocketError property of args is not SocketError.Success.

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

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

Closes the DescriptorBase instance.
public Close ( ) : void
Результат void

DescriptorBase() защищенный Метод

Initializes a new instance of the DescriptorBase class.
This constructor initializes the Container and SocketArgs properties.
/// Thrown if is . ///
protected DescriptorBase ( IDescriptorContainer container ) : System
container IDescriptorContainer The container of this descriptor.
Результат System

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

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Called when the instance is being released.
protected Dispose ( bool disposing ) : void
disposing bool Whether we are disposing or finalizing the instance.
Результат void

OnClosed() защищенный абстрактный Метод

A hook to the end of the publicly exposed Close() method.
protected abstract OnClosed ( ) : void
Результат void

OnError() защищенный Метод

Raises the Error event and closes the connection.
The event will be raised only if it has subscribers and the SocketAsyncEventArgs.SocketError property of args is not SocketError.Success.
/// Thrown if is . ///
protected OnError ( SocketAsyncEventArgs args ) : void
args System.Net.Sockets.SocketAsyncEventArgs /// A object for the operation that caused the error. ///
Результат void