TIPBuffer
From Ultibo.org
Return to Unit IP
Description
To be documented
Class definitions
[Expand]
TIPBuffer = class(TTransportBufferEx)
Function declarations
[Expand]
function TIPBuffer.GetFragment(APacket:PIPPacket; AOffset,ASize:Word):PIPFragment;
Description: Gets the Fragment with matching Offset and Size if any
[Expand]
function TIPBuffer.AddFragment(APacket:PIPPacket; AOffset,ASize:Word):PIPFragment;
Description: Adds a new Fragment as the Last fragment in the Packet
[Expand]
function TIPBuffer.RemoveFragment(APacket:PIPPacket):Boolean;
Description: Removes the First fragment from the Packet
[Expand]
procedure TIPBuffer.FlushFragments(APacket:PIPPacket);
Description: Removes all fragments from the Packet
[Expand]
function TIPBuffer.GetPacket(AId:Word; AProtocol:Byte; const ASource,ADest:TInAddr; ALock:Boolean):PIPPacket;
Description: Gets the Packet with matching Id, Protocol, Source and Dest if any
[Expand]
function TIPBuffer.AddPacket(AId:Word; AProtocol:Byte; const ASource,ADest:TInAddr; ALock:Boolean):PIPPacket;
Description: Adds a new Packet as the Last packet in the Buffer
[Expand]
function TIPBuffer.RemovePacket(APacket:PIPPacket):Boolean;
Description: Removes the Packet from the Buffer and release the memory
[Expand]
function TIPBuffer.UnlockPacket(APacket:PIPPacket):Boolean;
Description: Unlock the Packet previously locked by GetPacket or AddPacket
[Expand]
procedure TIPBuffer.FlushPackets(All:Boolean);
Description: Removes either all packets or packets which have expired
[Expand]
function TIPBuffer.PutHeader(APacket:PIPPacket; ABuffer:Pointer; ALength:Word):Boolean;
Description: Copies the Packet header from the Buffer to the Packet
[Expand]
function TIPBuffer.PutFragment(APacket:PIPPacket; ABuffer:Pointer; AOffset,ASize,AFlags:Word):Boolean;
Description: Creates a new Fragment and copies the data from the Buffer to the Packet
Return to Unit Reference