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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,ad2e14b28c224ca9 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!wns13feed!worldnet.att.net!attbi_s01.POSTED!53ab2750!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: gnat sockets problem References: <4d01ad29.0405291608.6d71cd4@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 24.6.132.82 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s01 1085884243 24.6.132.82 (Sun, 30 May 2004 02:30:43 GMT) NNTP-Posting-Date: Sun, 30 May 2004 02:30:43 GMT Organization: Comcast Online Date: Sun, 30 May 2004 02:30:43 GMT Xref: controlnews3.google.com comp.lang.ada:921 Date: 2004-05-30T02:30:43+00:00 List-Id: >String'Output (Channel,"����getstatus"); In the definition of 'Output, ARM 13.13.2(21) says "S'Output writes the value of Item to Stream, including any bounds or discriminants." So you are probably sending 4 bytes containing the integer 1 (the lower bound of the string you are sending), then the integer 13 (the upper bound), followed the 13 bytes you think you are sending. Similarly 'Input expects to read the bounds, then the data. Using 'Write instead of 'Output will probably solve the sending problem, but S'Read is a procedure, not a function, since YOU will have to supply the bounds, which presumably you can get from the recv (or whatever gnat.sockets uses for datagram input).