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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,adb01e044e3e5aec,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-31 08:37:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!news.tiscali.fr!deine.net!fu-berlin.de!uni-berlin.de!7189-cm.able.ES!not-for-mail From: Jano <402450@cepsz.unizar.es> Newsgroups: comp.lang.ada Subject: Hints for networking Date: Fri, 31 Jan 2003 17:37:54 +0100 Message-ID: NNTP-Posting-Host: 7189-cm.able.es (212.97.171.89) X-Trace: fu-berlin.de 1044031076 36364056 212.97.171.89 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:33649 Date: 2003-01-31T17:37:54+01:00 List-Id: Hello everybody. I'm about to program a networking package for the first time in Ada and am somewhat undecided the way to go. I'd like to hear some pointers for examples or hints. The protocol has some fixed-size packets and others of unknown size (but with known headers which contains the full size). I'm wondering what representation clauses could help me, if any. Also, I've my doubts about streams, because in the past I've tried them to write files and in Gnat I couldn't manage to output exact sized types except uncheckedconverting them into byte arrays. For example an integer subtype with representation clauses for 16 bits was always dumped as its base type, i.e. 32 bits. Frankly, the RM is too dense for me so some beginner documentation would be very useful. I've read some tutorials and books from adapower lately but can't find something more on the subject. Clues welcomed. TIA, -- ------------------------- Jano 402450[at]cepsz.unizar.es -------------------------