Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ACPCONTROL equivalents of getaddrinfo() and getnameinfo()

13 views
Skip to first unread message

Mark Daniel

unread,
Aug 29, 2010, 1:34:35 PM8/29/10
to
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.)

Mark Daniel

unread,
Aug 29, 2010, 3:07:00 PM8/29/10
to

Mark Daniel

unread,
Aug 29, 2010, 3:38:22 PM8/29/10
to

Mark Daniel

unread,
Aug 29, 2010, 4:04:50 PM8/29/10
to

My regrets over the multiple posts (explanation is too banal).

Richard Whalen

unread,
Aug 30, 2010, 9:43:42 AM8/30/10
to

"Mark Daniel" <mark....@wasd.vsm.com.au> wrote in message
news:4c7a9a2a$0$28655$c3e...@news.astraweb.com...

According to RFC 3493 getaddrinfo and getnameinfo are supposed to be thread
safe.
So, the portable way of performing these functions in an asynchronous manner
would be to use threads in your program.

I do not know of a QIO call that would provide equivalent functionality for
either of these functions.


Mark Daniel

unread,
Aug 30, 2010, 1:22:17 PM8/30/10
to
On 08/30/2010 11:13 PM, Richard Whalen wrote:
> "Mark Daniel"<mark....@wasd.vsm.com.au> wrote in message
> news:4c7a9a2a$0$28655$c3e...@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.

0 new messages