From: David Botton <David@Botton.com>
Subject: Re: GNAT sockets
Date: 1998/12/30
Date: 1998-12-30T00:00:00+00:00 [thread overview]
Message-ID: <368A799A.4A59C97A@Botton.com> (raw)
In-Reply-To: 368a76d8.0@dial-in.encomix.es
Take a look at
http://www.botton.com/ada/os
There are some Ada 95 examples of sockets and links to thick bindings
for Win32 and Unix.
David Botton
The Ada Source Code Treasury
http://www.botton.com/ada
Daniel Fanjul wrote:
> Hello,
>
> I wrote this code to be compiled with GNAT (for Windows 95):
>
> #include "windows.h"
> #include "windows32\sockets.h"
>
> int main () {
> SOCKET s;
>
> s = socket (AF_INET, SOCK_STREAM, 0);
> printf ("%d", s);
> return 0;
> }
>
> The output was -1.
>
> Can anybody help me?
>
> Thanks.
>
> Daniel.
next prev parent reply other threads:[~1998-12-30 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-29 0:00 GNAT sockets Daniel Fanjul
1998-12-30 0:00 ` dennison
1998-12-30 0:00 ` Steve Doiel
1998-12-30 0:00 ` David Botton [this message]
1998-12-31 0:00 ` robert_dewar
1999-01-01 0:00 ` Jerry van Dijk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox