C# Class Tempest.Providers.Network.BufferPool

显示文件 Open project: ermau/Tempest Class Usage Examples

Public Methods

Method Description
AddConnection ( ) : void
BufferPool ( int defaultBufferSize ) : System
BufferPool ( int defaultBufferSize, int bufferLimit ) : System
PushBuffer ( SocketAsyncEventArgs buffer ) : void
RemoveConnection ( ) : void
TryGetBuffer ( SocketAsyncEventArgs &args ) : bool

Tries to retrieve an existing buffer.

Method Details

AddConnection() public method

public AddConnection ( ) : void
return void

BufferPool() public method

public BufferPool ( int defaultBufferSize ) : System
defaultBufferSize int
return System

BufferPool() public method

public BufferPool ( int defaultBufferSize, int bufferLimit ) : System
defaultBufferSize int
bufferLimit int
return System

PushBuffer() public method

public PushBuffer ( SocketAsyncEventArgs buffer ) : void
buffer System.Net.Sockets.SocketAsyncEventArgs
return void

RemoveConnection() public method

public RemoveConnection ( ) : void
return void

TryGetBuffer() public method

Tries to retrieve an existing buffer.
public TryGetBuffer ( SocketAsyncEventArgs &args ) : bool
args System.Net.Sockets.SocketAsyncEventArgs The retrieved or created .
return bool