C# Class Cakewalk.Server.SocketAsyncPool

Pool for socket async context objects that share the same memory buffer
Afficher le fichier Open project: Cakez0r/Cakewalk Class Usage Examples

Méthodes publiques

Méthode Description
GetArgs ( ) : SocketAsyncEventArgs

Get a context object from the pool

ReturnArgs ( SocketAsyncEventArgs args ) : void

Return a context object to the pool

SocketAsyncPool ( int bufferSize, int maxCount ) : System

Create a pool of async socket context objects

Method Details

GetArgs() public méthode

Get a context object from the pool
public GetArgs ( ) : SocketAsyncEventArgs
Résultat System.Net.Sockets.SocketAsyncEventArgs

ReturnArgs() public méthode

Return a context object to the pool
public ReturnArgs ( SocketAsyncEventArgs args ) : void
args System.Net.Sockets.SocketAsyncEventArgs
Résultat void

SocketAsyncPool() public méthode

Create a pool of async socket context objects
public SocketAsyncPool ( int bufferSize, int maxCount ) : System
bufferSize int
maxCount int
Résultat System