comp.lang.ada
 help / color / mirror / Atom feed
* GNAT sockets
@ 1998-12-29  0:00 Daniel Fanjul
  1998-12-30  0:00 ` dennison
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Daniel Fanjul @ 1998-12-29  0:00 UTC (permalink / raw)


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.






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

end of thread, other threads:[~1999-01-01  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-29  0:00 GNAT sockets Daniel Fanjul
1998-12-30  0:00 ` dennison
1998-12-30  0:00 ` David Botton
1998-12-30  0:00 ` Steve Doiel
1998-12-31  0:00 ` robert_dewar
1999-01-01  0:00 ` Jerry van Dijk

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