comp.lang.ada
 help / color / mirror / Atom feed
From: mockturtle <framefritti@gmail.com>
Subject: Making a Inet_Addr_Type out of octects (GNAT.Sockets)
Date: Tue, 7 Oct 2008 12:43:13 -0700 (PDT)
Date: 2008-10-07T12:43:13-07:00	[thread overview]
Message-ID: <910108d9-03a0-4e35-86d2-572501a82906@z6g2000pre.googlegroups.com> (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.



             reply	other threads:[~2008-10-07 19:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07 19:43 mockturtle [this message]
2008-10-07 20:11 ` Making a Inet_Addr_Type out of octects (GNAT.Sockets) Jeffrey R. Carter
2008-10-08  1:53   ` anon
2008-10-08 10:28 ` anon
replies disabled

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