TRAWSocket

From Ultibo.org
Jump to: navigation, search

Return to Unit RAW


Description


To be documented

Class definitions



TRAWSocket = class(TProtocolSocket)

Note: SOCK_RAW
 
constructor Create(AProtocol:TNetworkProtocol; ATransport:TNetworkTransport);  
destructor Destroy; override;  
private
FRecvData:TRAWBuffer;  
public
property RecvData:TRAWBuffer read FRecvData;  
 
function IoCtl(ACommand:DWORD; var AArgument:u_long):Integer; override;  
 
function IsConnected(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean; override;  
function IsListening(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean; override;  


Function declarations



constructor TRAWSocket.Create(AProtocol:TNetworkProtocol; ATransport:TNetworkTransport);
Description: To be documented
Note None documented


destructor TRAWSocket.Destroy;
Description: To be documented
Note None documented


function TRAWSocket.IoCtl(ACommand:DWORD; var AArgument:u_long):Integer;
Description: To be documented
Note None documented


function TRAWSocket.IsConnected(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean;
Description: Check if this RAW Socket is Connected to the Host specified by RemoteAddress
Note A connected Socket will have a Bound LocalAddress and a Connected RemoteAddress


function TRAWSocket.IsListening(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean;
Description: Check if this RAW Socket is Listening on the LocalAddress specified
Note A listening Socket may or may not have a Bound LocalAddress and will have a default (INADDR_ANY) RemoteAddress


Return to Unit Reference