C# 클래스 GamingInterface.SocketAsyncEventArgsPool

Represents a collection of resusable SocketAsyncEventArgs objects.
파일 보기 프로젝트 열기: RocHCI/legion-gaming 1 사용 예제들

공개 메소드들

메소드 설명
Pop ( ) : SocketAsyncEventArgs

Removes a SocketAsyncEventArgs instance from the pool

Push ( SocketAsyncEventArgs item ) : void

Add a SocketAsyncEventArg instance to the pool

SocketAsyncEventArgsPool ( int capacity ) : System

Initializes the object pool to the specified size

메소드 상세

Pop() 공개 메소드

Removes a SocketAsyncEventArgs instance from the pool
public Pop ( ) : SocketAsyncEventArgs
리턴 System.Net.Sockets.SocketAsyncEventArgs

Push() 공개 메소드

Add a SocketAsyncEventArg instance to the pool
public Push ( SocketAsyncEventArgs item ) : void
item System.Net.Sockets.SocketAsyncEventArgs The SocketAsyncEventArgs instance to add to the pool
리턴 void

SocketAsyncEventArgsPool() 공개 메소드

Initializes the object pool to the specified size
public SocketAsyncEventArgsPool ( int capacity ) : System
capacity int The maximum number of SocketAsyncEventArgs objects the pool can hold
리턴 System