Sockets Toolkit - getaddrinfo
- Loadable Function:
addrinforesults =getaddrinfo(hostname, service, hints) Get addressinfo lookup for a hostname/service.
Returns an array of addressinfo structs with the following fields:
familyInteger family value
socktypeInteger socktype value
protocolInteger protocol value
addra string with the host name to send to
portthe port number to send to (an integer)
hints is optional with one or more fields:
familyInteger family value
socktypeInteger socktype value
protocolInteger protocol value
flagsa integer ai flags
See the
getaddrinfoman pages for details.