comp.lang.ada
 help / color / mirror / Atom feed
From: Jano <402450@cepsz.unizar.es>
Subject: Hints for networking
Date: Fri, 31 Jan 2003 17:37:54 +0100
Date: 2003-01-31T17:37:54+01:00	[thread overview]
Message-ID: <MPG.18a4c4d14186a6f598968c@News.CIS.DFN.DE> (raw)

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
-------------------------



             reply	other threads:[~2003-01-31 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-31 16:37 Jano [this message]
2003-01-31 18:40 ` Hints for networking tmoran
2003-01-31 21:21 ` David C. Hoos
2003-02-01 19:29   ` Jano
2003-02-02  7:43     ` Simon Wright
2003-02-01 18:32 ` Alfred Hilscher
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox