TWinsock2TCPClient

From Ultibo.org
Jump to: navigation, search

Return to Unit Winsock2


Description


To be documented

Class definitions



TWinsock2TCPClient = class(TWinsock2TCPSocket)

Note: Stream Client classes
 
public
constructor Create;  
destructor Destroy; override;  
private
FRemotePort:Word;  
FRemoteHost:String;  
FRemoteAddress:String;  
 
procedure SetFamily(AFamily:Integer); override;  
 
procedure SetBoundAddress(const ABoundAddress:String); override;  
 
procedure SetRemotePort(ARemotePort:Word);  
procedure SetRemoteHost(const ARemoteHost:String);  
procedure SetRemoteAddress(const ARemoteAddress:String);  
protected
function AllocateFamily:Boolean; override;  
 
function AllocateRemoteAddress(var ALength:Integer):PSockAddr;  
public
property RemotePort:Word read FRemotePort write SetRemotePort;  
property RemoteHost:String read FRemoteHost write SetRemoteHost;  
property RemoteAddress:String read FRemoteAddress write SetRemoteAddress;  
 
function Connect:Boolean; virtual;  
function ConnectEx:Boolean; virtual;  
function Disconnect:Boolean; override;  


Function declarations



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


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


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


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


procedure TWinsock2TCPClient.SetRemotePort(ARemotePort:Word);
Description: To be documented
Note None documented


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


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


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


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


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


function TWinsock2TCPClient.ConnectEx:Boolean;
Description: Similar to Connect except will get all addresses for RemoteHost and try each one in turn
Note None documented


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


Return to Unit Reference