Difference between revisions of "TWinsock2Socket"
From Ultibo.org
Line 727: | Line 727: | ||
<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. | + | <pre style="border: 0; padding-bottom:0px;">function TWinsock2Socket.ResolveFamily(const AAddress:String):Integer;</pre> |
− | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' Resolve a numeric address to | + | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' Resolve a numeric address to an address family</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;"> | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
Line 739: | Line 739: | ||
<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. | + | <pre style="border: 0; padding-bottom:0px;">function TWinsock2Socket.ResolveAddress(const AAddress:String):String;</pre> |
− | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' Resolve a numeric address to | + | <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;"> | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" |
Revision as of 07:01, 30 July 2021
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):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):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