comp.lang.ada
 help / color / mirror / Atom feed
* Making a Inet_Addr_Type out of octects (GNAT.Sockets)
@ 2008-10-07 19:43 mockturtle
  2008-10-07 20:11 ` Jeffrey R. Carter
  2008-10-08 10:28 ` anon
  0 siblings, 2 replies; 4+ messages in thread
From: mockturtle @ 2008-10-07 19:43 UTC (permalink / raw)


Dear.all,
a very simple (almost silly) question whose answer, I fear, is
"no."...

I have 4 octects (read by a received packet) which rappresent
an IP address and  I want to convert them into a Inet_Addr_Type
(using GNAT.Sockets). Of course I could convert the 4 octects
into a string to be given to function Inet_Addr_Type, but it seems
a bit "convoluted" (it sounds like the joke about the mathematician's
algorithm to make a pot of hot water :-).   My question is: there
is a  function which  allows me to do such a conversion in a
more direct way? I looked at g-sockets, searching for
"Inet_Addr_Type", but I could not  find anything.

Thank you in advance.



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

end of thread, other threads:[~2008-10-08 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-07 19:43 Making a Inet_Addr_Type out of octects (GNAT.Sockets) mockturtle
2008-10-07 20:11 ` Jeffrey R. Carter
2008-10-08  1:53   ` anon
2008-10-08 10:28 ` anon

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