C# 클래스 OpenStory.Networking.DescriptorBase

Represents an abstract asynchronous network operation buffer.
상속: IDisposable
파일 보기 프로젝트 열기: shoftee/OpenStory

공개 메소드들

메소드 설명
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