C# Class Cakewalk.Server.SocketAsyncPool

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

Public Methods

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

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

ReturnArgs() public method

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

SocketAsyncPool() public method

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