TWinsock2RAWClient

From Ultibo.org
Jump to: navigation, search

Return to Unit Winsock2


Description


To be documented

Class definitions



TWinsock2RAWClient = class(TWinsock2RAWSocket)

Note: Raw Client classes
 
public
constructor Create;  
destructor Destroy; override;  
private
FUseConnect:Boolean;  
 
FRemoteHost:String;  
FRemoteAddress:String;  
 
procedure SetUseConnect(AUseConnect:Boolean);  
 
procedure SetFamily(AFamily:Integer); override;  
 
procedure SetBoundAddress(const ABoundAddress:String); override;  
 
procedure SetRemoteHost(const ARemoteHost:String);  
procedure SetRemoteAddress(const ARemoteAddress:String);  
protected
function AllocateFamily:Boolean; override;  
 
function AllocateRemoteAddress(var ALength:Integer):PSockAddr;  
public
property UseConnect:Boolean read FUseConnect write SetUseConnect;  
 
property RemoteHost:String read FRemoteHost write SetRemoteHost;  
property RemoteAddress:String read FRemoteAddress write SetRemoteAddress;  
 
function Connect:Boolean; virtual;  
function Disconnect:Boolean; override;  


Function declarations



constructor TWinsock2RAWClient.Create;
Description: To be documented
Note None documented


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


procedure TWinsock2RAWClient.SetUseConnect(AUseConnect:Boolean);
Description: To be documented
Note None documented


procedure TWinsock2RAWClient.SetFamily(AFamily:Integer);
Description: To be documented
Note None documented


procedure TWinsock2RAWClient.SetBoundAddress(const ABoundAddress:String);
Description: To be documented
Note None documented


procedure TWinsock2RAWClient.SetRemoteHost(const ARemoteHost:String);
Description: To be documented
Note None documented


procedure TWinsock2RAWClient.SetRemoteAddress(const ARemoteAddress:String);
Description: To be documented
Note None documented


function TWinsock2RAWClient.AllocateFamily:Boolean;
Description: Check Family, Bound Address and Remote Address, normalise as needed
Note None documented


function TWinsock2RAWClient.AllocateRemoteAddress(var ALength:Integer):PSockAddr;
Description: Allocate a socket address structure for the remote address and port
Note None documented


function TWinsock2RAWClient.Connect:Boolean;
Description: To be documented
Note None documented


function TWinsock2RAWClient.Disconnect:Boolean;
Description: To be documented
Note None documented


Return to Unit Reference