comp.lang.ada
 help / color / mirror / Atom feed
* How to express "gethostbyname" with Florist/Posix?
@ 2002-08-15 19:15 Franz Kruse
  2002-08-15 23:34 ` Alexei Polkhanov
  0 siblings, 1 reply; 2+ messages in thread
From: Franz Kruse @ 2002-08-15 19:15 UTC (permalink / raw)


Does anybody have an idea how to express the functionality of
gethostbyname with operations available in the Florist Posix library?

Franz





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to express "gethostbyname" with Florist/Posix?
  2002-08-15 19:15 How to express "gethostbyname" with Florist/Posix? Franz Kruse
@ 2002-08-15 23:34 ` Alexei Polkhanov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexei Polkhanov @ 2002-08-15 23:34 UTC (permalink / raw)


see spec in posix-sockets.ads:
   procedure Get_Socket_Address_Info
     (Name    : in     POSIX.POSIX_String;
      Service : in     POSIX.POSIX_String;
      Info    : in out Socket_Address_Info_List);
   procedure Get_Socket_Address_Info
     (Name    : in     POSIX.POSIX_String;
      Service : in     POSIX.POSIX_String;
      Request : in     Socket_Address_Info;
      Info    : in out Socket_Address_Info_List);

these are by itself thin bindings to wrappers around gethostbyname defined
in getaddrinfo.c.
According to it wrappers are necessary in order to make code protocol
independent that is
same function will work with IPv4 and IPv6.

Cheers.

"Franz Kruse" <Franz.Kruse@t-online.de> wrote in message
news:ajgujg$2mm$02$1@news.t-online.com...
> Does anybody have an idea how to express the functionality of
> gethostbyname with operations available in the Florist Posix library?
>
> Franz
>
>







^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-15 23:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-15 19:15 How to express "gethostbyname" with Florist/Posix? Franz Kruse
2002-08-15 23:34 ` Alexei Polkhanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox