comp.lang.ada
 help / color / mirror / Atom feed
* Hints for networking
@ 2003-01-31 16:37 Jano
  2003-01-31 18:40 ` tmoran
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jano @ 2003-01-31 16:37 UTC (permalink / 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
-------------------------



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-02-02  7:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-31 16:37 Hints for networking Jano
2003-01-31 18:40 ` 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

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