constructor Create(AManager:TTransportManager; const AName:String);
|
|
destructor Destroy; override;
|
|
private
|
FLock:TSynchronizerHandle;
|
|
FLocalLock:TMutexHandle;
|
|
protected
|
FManager:TTransportManager;
|
|
FName:String;
|
|
Public variables
Transport specific variables
TransportManager:TTransportManager;
|
|
Function declarations
Initialization functions
[Expand]
procedure TransportInit;
Description: To be documented
[Expand]
function TransportStart:LongWord;
Description: To be documented
[Expand]
function TransportStop:LongWord;
Description: To be documented
[Expand]
function TransportBind:LongWord;
Description: To be documented
[Expand]
function TransportUnbind:LongWord;
Description: To be documented
Transport functions
[Expand]
function InAddrToHost(const AAddress:TInAddr):TInAddr; inline;
Description: Convert an InAddr in Network order to Host order
[Expand]
function InAddrToNetwork(const AAddress:TInAddr):TInAddr; inline;
Description: Convert an InAddr in Host order to Network order
[Expand]
function InAddrToString(const AAddress:TInAddr):String;
Description: Convert an InAddr to a String
Note
|
Expects Address to be in Network order
|
[Expand]
function StringToInAddr(const AAddress:String):TInAddr;
Description: Convert a String to an InAddr
Note
|
Returns Address in Network order
|
[Expand]
function InAddrIsEqual(const AAddress1,AAddress2:TInAddr):Boolean;
Description: Check the supplied addresses to see if they are the same
Note
|
Expects Address to be in Host order
|
[Expand]
function InAddrIsNone(const AAddress:TInAddr):Boolean;
Description: Check the supplied address to see if it is equal to INADDR_NONE
Note
|
Expects Address to be in Host order
|
[Expand]
function InAddrIsDefault(const AAddress:TInAddr):Boolean;
Description: Check the supplied address to see if it is the default address
Note
|
Expects Address to be in Host order
|
[Expand]
function InAddrIsLoopback(const AAddress:TInAddr):Boolean;
Description: Check the supplied address to see if it is a loopback address
Note
|
Expects Address to be in Host order
|
[Expand]
function InAddrIsBroadcast(const AAddress:TInAddr):Boolean;
Description: Check the supplied address to see if it is the broadcast address
Note
|
Expects Address to be in Host order
|
[Expand]
function InAddrIsMulticast(const AAddress:TInAddr):Boolean;
Description: Check the supplied address to see if it is a multicast address
Note
|
Expects Address to be in Host order
|
[Expand]
function In6AddrToString(const AAddress:TIn6Addr):String;
Description: To be documented
[Expand]
function StringToIn6Addr(const AAddress:String):TIn6Addr;
Description: To be documented
[Expand]
function In6AddrIsEqual(const AAddress1,AAddress2:TIn6Addr):Boolean;
Description: Check the supplied addresses to see if they are the same
[Expand]
function In6AddrIsDefault(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is the default address
[Expand]
function In6AddrIsLoopback(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a loopback address
[Expand]
function In6AddrIsLinkLocal(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a link local address
[Expand]
function In6AddrIsSiteLocal(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a site local address
[Expand]
function In6AddrIsV4Mapped(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a V4 mapped address
[Expand]
function In6AddrIsV4Compatible(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a V4 compatible address
[Expand]
function In6AddrIsMulticast(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a multicast address
[Expand]
function In6AddrIsMulticastNodeLocal(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a multicast node local address
[Expand]
function In6AddrIsMulticastLinkLocal(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a multicast link local address
[Expand]
function In6AddrIsMulticastSiteLocal(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a multicast site local address
[Expand]
function In6AddrIsMulticastOrgLocal(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a multicast org local address
[Expand]
function In6AddrIsMulticastGlobal(const AAddress:TIn6Addr):Boolean;
Description: Check the supplied address to see if it is a multicast global address
[Expand]
function IpxAddrToString(const AAddress:TIpxAddr):String;
Description: To be documented
[Expand]
function StringToIpxAddr(const AAddress:String):TIpxAddr;
Description: To be documented
[Expand]
function GetChecksum(ABuffer:Pointer; AOffset,ALength:Word):Word;
Description: Calculate the 1s Compliment Checksum of the Supplied Buffer
[Expand]
function GetChecksum2(APseudo,ABuffer:Pointer; APseudoLength,ABufferOffset,ABufferLength:Word):Word;
Description: Calculate the 1s Compliment Checksum of the Supplied Pseudo and Buffer
Note
|
Pseudo is expected to start from Offset 0
|
[Expand]
function GetChecksum3(APseudo,AHeader,AData:Pointer; APseudoLength,AHeaderLength,ADataOffset,ADataLength:Word):Word;
Description: Calculate the 1s Compliment Checksum of the Supplied Pseudo, Header and Data
Note
|
Pseudo and Header are expected to start from Offset 0
|
[Expand]
function GetChecksum4(APseudo,AHeader,AOptions,AData:Pointer; APseudoLength,AHeaderLength,AOptionsLength,ADataOffset,ADataLength:Word):Word;
Description: Calculate the 1s Compliment Checksum of the Supplied Pseudo, Header, Options and Data
Note
|
Pseudo, Header and Options are expected to start from Offset 0.
|
Transport helper functions
[Expand]
function HostTypeToString(AType:Word):String;
Description: To be documented
[Expand]
function RouteTypeToString(AType:Word):String;
Description: To be documented
[Expand]
function AddressTypeToString(AType:Word):String;
Description: To be documented
[Expand]
function ProtocolToString(AProtocol:Word):String;
Description: To be documented
[Expand]
function SocketTypeToString(ASocketType:Word):String;
Description: To be documented
[Expand]
function AddressFamilyToString(AFamily:Word):String;
Description: To be documented
Return to
Unit Reference