[Info-vax] ACPCONTROL equivalents of getaddrinfo() and getnameinfo()
Mark Daniel
mark.daniel at wasd.vsm.com.au
Mon Aug 30 13:22:17 EDT 2010
On 08/30/2010 11:13 PM, Richard Whalen wrote:
> "Mark Daniel"<mark.daniel at wasd.vsm.com.au> wrote in message
> news:4c7a9a2a$0$28655$c3e8da3 at news.astraweb.com...
>> A $QIO with function IO$_ACPCONTROL and the likes of subfunctions of
>> INETACP_FUNC$C_GETHOSTBYNAME or INETACP_FUNC$C_GETHOSTBYADDR is the
>> documented *asynchronous* mechanism for resolving host names and addresses
>> (equivalents of the BSD calls gethostbyname() and gethostbyaddr()).
>>
>> This seems only able to return A records. I am looking for the
>> asynchronous AAAA record equivalents of the likes of getaddrinfo() and
>> getnameinfo() ... but without much success.
>>
>> Can anyone point me in the right direction (or tell me there is no such)?
>> TIA.
>>
>> (HP TCP/IP Services for OpenVMS Alpha Version V5.6 - ECO 2, FWIW.)
Thanks for the response Richard.
> According to RFC 3493 getaddrinfo and getnameinfo are supposed to be thread safe.
Yes. And they certainly avoid the static, per-process hostent structure
of the likes of gethostbyaddr(), requiring that response structures be
released using freeaddrinfo() when finished with.
> So, the portable way of performing these functions in an asynchronous manner
> would be to use threads in your program.
The idea of grafting POSIX threads into an exclusively AST-driven
infrastructure just to employ a single function makes me a little pale.
Anyone have a no-brainer approach?
> I do not know of a QIO call that would provide equivalent functionality for
> either of these functions.
Having been searching I was a little afraid of that. Thanks again.
More information about the Info-vax
mailing list