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,f69eb259f3ed2afb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!oleane.net!oleane!freenix!usenet-fr.net!teaser.fr!titine.scrogneugneu.org!not-for-mail From: Eric Jacoboni Newsgroups: comp.lang.ada Subject: Re: Using GNAT.Sockets Date: Mon, 18 Apr 2005 22:45:29 +0200 Organization: Rogntutdju Media Inc. Message-ID: References: <1113404846.310840.322920@z14g2000cwz.googlegroups.com> <1113555847.303640.190000@f14g2000cwb.googlegroups.com> <1113814867.251847.285880@o13g2000cwo.googlegroups.com> <1113834734.937407.145410@z14g2000cwz.googlegroups.com> <4263ced3$0$2275$ba620e4c@news.skynet.be> <1113838500.614450.176530@l41g2000cwc.googlegroups.com> <4263d6bc$0$1407$ba620e4c@news.skynet.be> <1113843963.760135.111420@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 192.168.2.3 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: titine.scrogneugneu.org 1113857237 52088 192.168.2.3 (18 Apr 2005 20:47:17 GMT) X-Complaints-To: usenet@titine.scrogneugneu.org NNTP-Posting-Date: Mon, 18 Apr 2005 20:47:17 +0000 (UTC) X-Attribution: Jaco User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (darwin) Cancel-Lock: sha1:DMkRN+BAiBgw6iQ94AeUU2yC5ao= Xref: g2news1.google.com comp.lang.ada:10540 Date: 2005-04-18T22:45:29+02:00 List-Id: "markp" writes: > I have no control on the other side. I tried using the 'Read, but it > wants 2 parameters. Can you tell me what they are? I've had the same problem : writing a simple POP3 client with Gnat.Sockets and Streams is not so easy. Looks like streams are good when you write both the server and the clients apps, but not when you have to talk to a existing server (at least, it's the conclusion where i am now). I think i've found a solution to circumvent this problem : using Gnat.Sockets.Send_Socket and Gnat.Sockets.Receive_Socket procedures. The problem, now, is to play (well... to fight) with unchecked conversions between Stream_Element_Array/Stream_Element_Offset and String/Positive in both direction... If only AdaSockets wanted to build ok on my plateform! -- �ric Jacoboni, n� il y a 1417300708 secondes