Difference between revisions of "TICMPSocket"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit ICMP __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-collapse...")
 
(No difference)

Latest revision as of 03:29, 18 May 2018

Return to Unit ICMP


Description


To be documented

Class definitions



TICMPSocket = class(TProtocolSocket)

Note: SOCK_RAW
 
constructor Create(AProtocol:TNetworkProtocol; ATransport:TNetworkTransport);  
destructor Destroy; override;  
private
FRecvData:TICMPBuffer;  
public
property RecvData:TICMPBuffer 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 TICMPSocket.Create(AProtocol:TNetworkProtocol; ATransport:TNetworkTransport);
Description: To be documented
Note None documented


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


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


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


function TICMPSocket.IsListening(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean;
Description: Check if this ICMP 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