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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,80ae596d36288e8a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!216.196.110.142.MISMATCH!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!uio.no!fi.sn.net!newsfeed2.tdcnet.fi!news.song.fi!not-for-mail Date: Wed, 25 May 2011 21:43:35 +0300 From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: Why no socket package in the standard ? Message-Id: <20110525214335.70113236.tero.koskinen@iki.fi> References: <20110525181252.8d25df9a.tero.koskinen@iki.fi> X-Newsreader: Sylpheed 3.0.3 (GTK+ 2.22.1; x86_64-unknown-openbsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Organization: NBL Networks Oy NNTP-Posting-Host: 217.30.184.161 X-Trace: 1306349014 news.nbl.fi 2833 217.30.184.161:31829 X-Complaints-To: abuse@nblnetworks.fi Xref: g2news1.google.com comp.lang.ada:19477 Date: 2011-05-25T21:43:35+03:00 List-Id: On Wed, 25 May 2011 18:12:52 +0300 Tero Koskinen wrote: > Hi, > > On Tue, 24 May 2011 06:11:43 +0000 (UTC) tmoran@acm.org wrote: > > A thicker binding is NC sockets ("Not Claw", derived from Claw.Sockets). > > It's nc.zip at www.adaworld.com, look there under > > Ada Projects/Ada Internet Projects/Internet Protocols > > It's for Windows but IIRC the WSAStartup and WSACleanup should be > > the only Windows specific things. > > Here is a diff which allows the package to compile on OpenBSD/amd64. It seems that you need to tailor NC.sockets for every operating system separately. I created a Mercurial repository https://bitbucket.org/tkoskine/not-claw-sockets-linux-x86 which contains Linux/x86 version of NC.sockets. At the moment getjpg example compiles and connection is opened, but for some reason there is no data read (or send). I guess I need to open wireshark and debug a little more... -- Tero Koskinen - http://iki.fi/tero.koskinen/