From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,90bac00a68db7545 X-Google-Attributes: gid103376,public From: "Frans Bouwmans" Subject: Re: linking problem when using sockets with gnat 3.10p1 for NT Date: 1998/07/28 Message-ID: <6pkudq$jn9$1@cadmium.aware.nl>#1/1 X-Deja-AN: 375701619 References: <6p5k11$iof$1@cadmium.aware.nl> <01bdb5d6$db0ad170$50c809c0@Saturn> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: NL-NIC Newsgroups: comp.lang.ada Date: 1998-07-28T00:00:00+00:00 List-Id: Tom Griest heeft geschreven in bericht <01bdb5d6$db0ad170$50c809c0@Saturn>... >Frans Bouwmans wrote in article <6p5k11$iof$1@cadmium.aware.nl>... >> I'm trying to use sockets in ada with gnat 3.10 > >[lots-o-snips] > This indeed solved the linking problem, later I found that I also have to call "WSAstartup" before a connection can be made. Unfortunately my code which was originally for sparc used representation clause to specify the layout of records to be sent over the socket. It took a day to find the actual translation from big endian to little endian so the rep clauses match. But I got it working. Unfortunately I started of with the socket programming before I read the reply of Jerry van Dijk, so I wrote my own socket server generic Thanks for the prompt replies Frans Bouwmans