TSocketBuffer
From Ultibo.org
Revision as of 05:43, 30 May 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Transport __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible m...")
Return to Unit Transport
Description
To be documented
Class definitions
TSocketBuffer = class(TObject)
Note: Base Socket Buffer Class | |
constructor Create(ASocket:TTransportSocket);
|
|
destructor Destroy; override;
|
|
private
| |
FLock:TMutexHandle;
|
|
protected
| |
FSocket:TTransportSocket;
|
Socket owning this buffer |
FBuffer:TMemoryStream;
|
Memory Buffer for Data |
FSize:LongWord;
|
Physical Size of Data Buffer |
FStart:Pointer;
|
First Byte of Data Buffer |
FEnd:Pointer;
|
Last Byte of Data Buffer |
FUsed:LongWord;
|
Amount of Buffer Used |
FFree:LongWord;
|
Amount of Buffer Free |
function AcquireLock:Boolean;
|
|
function ReleaseLock:Boolean;
|
|
procedure SetSize(ASize:LongWord); virtual;
|
|
public
| |
property Size:LongWord read FSize write SetSize;
|
|
function GetUsed:LongWord;
|
|
function GetFree:LongWord;
|
Function declarations
constructor TSocketBuffer.Create(ASocket:TTransportSocket);
Description: To be documented
Note | None documented |
---|
destructor TSocketBuffer.Destroy;
Description: To be documented
Note | None documented |
---|
function TSocketBuffer.AcquireLock:Boolean;
Description: To be documented
Note | None documented |
---|
function TSocketBuffer.ReleaseLock:Boolean;
Description: To be documented
Note | None documented |
---|
procedure TSocketBuffer.SetSize(ASize:LongWord);
Description: To be documented
Note | None documented |
---|
function TSocketBuffer.GetUsed:LongWord;
Description: To be documented
Note | None documented |
---|
function TSocketBuffer.GetFree:LongWord;
Description: To be documented
Note | None documented |
---|
Return to Unit Reference