Property | Type | Description | |
---|---|---|---|
BytesToAllocPerEventArg | int |
Property | Type | Description | |
---|---|---|---|
Buffer | byte[] | ||
FreeBufferSpace | ConcurrentStack |
Method | Description | |
---|---|---|
AssignBuffer ( |
Assigns a buffer space from the buffer block to the specified SocketAsyncEventArgs object.
|
|
BufferManager ( int NumEventArgs, int BytesToAllocPerEventArg ) : System |
Creates a new instance of BufferManager
|
|
Dispose ( ) : void |
Releases all bytes held by this buffer
|
|
ReleaseBuffer ( |
Releases Buffer space assigned to a token so that it can be assingned to a new SAEA
|
Method | Description | |
---|---|---|
CheckDisposed ( ) : void |
If Dispose() has been called on this object, an ObjectDisposedException will be thrown here
|
public AssignBuffer ( |
||
args | The SocketEventArgs object to assign a buffer space to | |
return | bool |
public BufferManager ( int NumEventArgs, int BytesToAllocPerEventArg ) : System | ||
NumEventArgs | int | Specifies the maximum number of SocketAsyncEventArgs objects that will be assigned buffer space at once |
BytesToAllocPerEventArg | int | Specifies the number of bytes each SocketAsyncEventArgs object will be allocated from the buffer |
return | System |
public ReleaseBuffer ( |
||
args | The SocketEventArgs object that we are releasing buffer space from | |
return | void |