TWinsock2UDPClient

From Ultibo.org
Jump to: navigation, search

Return to Unit Winsock2


Description


To be documented

Class definitions



TWinsock2UDPClient = class(TWinsock2UDPSocket)

Note: Datagram Client classes
 
public
constructor Create;  
destructor Destroy; override;  
private
FUseConnect:Boolean;  
 
FRemotePort:Word;  
FRemoteHost:String;  
FRemoteAddress:String;  
 
procedure SetUseConnect(AUseConnect:Boolean);  
 
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 UseConnect:Boolean read FUseConnect write SetUseConnect;  
 
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 Disconnect:Boolean; override;  


Function declarations



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


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


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


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


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


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


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


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


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


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


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


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


Return to Unit Reference