Difference between revisions of "TWinsock2Socket"
From Ultibo.org
Line 287: | Line 287: | ||
| | | | ||
|- | |- | ||
− | | <code>function ResolveAddress(const AAddress:String):String;</code> | + | | <code>function ResolveAddress(const AAddress:String; ANumeric:Boolean = False):String;</code> |
| | | | ||
|- | |- | ||
Line 760: | Line 760: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TWinsock2Socket.ResolveAddress(const AAddress:String):String;</pre> | + | <pre style="border: 0; padding-bottom:0px;">function TWinsock2Socket.ResolveAddress(const AAddress:String; ANumeric:Boolean = False):String;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Resolve a numeric address to a hostname</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' Resolve a numeric address to a hostname</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> |
Latest revision as of 02:07, 6 March 2025
Return to Unit Winsock2
Description
To be documented
Class definitions
[Expand]
TWinsock2Socket = class(TListObject)
Function declarations
[Expand]
procedure TWinsock2Socket.SetSocketType(ASocketType:Integer);
Description: To be documented
[Expand]
procedure TWinsock2Socket.SetBoundAddress(const ABoundAddress:String);
Description: To be documented
[Expand]
procedure TWinsock2Socket.SetReuseAddress(AReuseAddress:Boolean);
Description: To be documented
[Expand]
procedure TWinsock2Socket.SetReceiveTimeout(ATimeout:Integer);
Description: To be documented
[Expand]
procedure TWinsock2Socket.SetConnectTimeout(ATimeout:Integer);
Description: To be documented
[Expand]
function TWinsock2Socket.AllocateFamily:Boolean;
Description: Check Family and Bound Address, normalise as needed
[Expand]
function TWinsock2Socket.AllocateAddress(var ALength:Integer):PSockAddr;
Description: Allocate s socket address structure for the current family
[Expand]
function TWinsock2Socket.ReleaseAddress(var ASockAddr:PSockAddr; var ALength:Integer; ALastError:Boolean = True):Boolean;
Description: Free a socket address structure allocated by AllocateAddress or AddressToSockAddr
[Expand]
function TWinsock2Socket.AllocateBoundAddress(var ALength:Integer):PSockAddr;
Description: Allocate a socket address structure for the bound address and port
[Expand]
function TWinsock2Socket.AllocateSocket(ASocketType:Integer):TSocket;
Description: To be documented
[Expand]
function TWinsock2Socket.SockAddrToPort(ASockAddr:PSockAddr; ALength:Integer):Word;
Description: Convert a socket adress structure to a numeric port
[Expand]
function TWinsock2Socket.SockAddrToAddress(ASockAddr:PSockAddr; ALength:Integer):String;
Description: Convert a socket address structure to a numeric address
[Expand]
function TWinsock2Socket.PortToSockAddr(APort:Word; ASockAddr:PSockAddr; ALength:Integer):Boolean;
Description: Convert a numeric port to a socket adress structure
[Expand]
function TWinsock2Socket.AddressToSockAddr(const AAddress:String; var ALength:Integer):PSockAddr;
Description: Convert a numeric address to a socket address structure
[Expand]
function TWinsock2Socket.ResolveHost(const AHost:String):String;
Description: Resolve a hostname to a numeric address
[Expand]
function TWinsock2Socket.ResolveFamily(const AAddress:String):Integer;
Description: Resolve a numeric address to an address family
[Expand]
function TWinsock2Socket.ResolveAddress(const AAddress:String; ANumeric:Boolean = False):String;
Description: Resolve a numeric address to a hostname
[Expand]
function TWinsock2Socket.ResolveHostEx(const AHost:String; AFamily:Integer; AAll:Boolean):TStrings;
Description: Resolve a hostname to a numeric address or addresses in the family specified or all families
Return to Unit Reference