comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: aliased and parameters
Date: Mon, 31 Jul 2006 21:52:25 GMT
Date: 2006-07-31T21:52:25+00:00	[thread overview]
Message-ID: <tYuzg.11401$E02.3978@newsb.telia.net> (raw)
In-Reply-To: <1154372565.780568.165840@p79g2000cwp.googlegroups.com>

REH wrote:
> recv is the standard POSIX (or BSD) socket receive
> function.

Can't you import recv like this?

function Recv(Socket : in  int;
               Hdr    : out Header_Type;
               Size   : in  size_t;
               Flags  : in  int);
pragma Import(C, Recv, "recv");

This should work if your compiler follows the advice in ARM95 B.3, and 
you won't have to mess with 'Address or pragma Volatile. You should be 
able to make multiple imports like this, with different types instead of 
the void pointer.

-- 
Bj�rn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu



  parent reply	other threads:[~2006-07-31 21:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 18:05 aliased and parameters REH
2006-07-31 18:37 ` Jeffrey R. Carter
2006-07-31 19:02   ` REH
     [not found]     ` <1154373046.777655.292010@m79g2000cwm.googlegroups.com>
2006-07-31 19:26       ` REH
2006-07-31 19:59         ` REH
2006-07-31 21:52     ` Björn Persson [this message]
2006-08-01  0:35       ` REH
2006-08-01  1:31     ` Jeffrey R. Carter
2006-08-01  2:28       ` REH
replies disabled

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