comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Using representation clauses in networking software
Date: Sun, 15 Aug 2010 20:15:49 +0100
Date: 2010-08-15T20:15:49+01:00	[thread overview]
Message-ID: <m21v9zu1p6.fsf@pushface.org> (raw)
In-Reply-To: 1uzfyshtk9wpq.1ft0ehpgbw60k.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> When using representation clauses? In order to use them you have two
> parameters in the equation: the internal endianness and external
> endianness. How can it be statically independent on the former (=portable)?
> Well, with conditional expressions of Ada 201X, maybe, it could be possible
> to describe. But I don't want to be one to maintain that mess. I'd better
> stick to good old means.

Yes, indeed.

Stick to network-byte-order on the wire, define messages explicitly,
preferably with a pictorial representation that is extremely clear as to
which byte is sent in which order and how this corresponds to machine
storage.

I don't think you can take too much trouble with specifying any sort of
interface; endianness differences just make matters more critical.



  parent reply	other threads:[~2010-08-15 19:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15 11:33 Using representation clauses in networking software Florian Weimer
2010-08-15 13:44 ` Yannick Duchêne (Hibou57)
2010-08-15 14:32   ` Dmitry A. Kazakov
2010-08-15 14:44     ` Florian Weimer
2010-08-15 15:04       ` Dmitry A. Kazakov
2010-08-15 15:32         ` Florian Weimer
2010-08-15 16:10           ` Dmitry A. Kazakov
2010-08-15 16:40             ` Yannick Duchêne (Hibou57)
2010-08-15 17:58               ` Dmitry A. Kazakov
2010-08-15 19:11                 ` Shark8
2010-08-15 19:15                 ` Simon Wright [this message]
2010-08-15 20:25                   ` Maciej Sobczak
2010-08-15 21:24                     ` Simon Wright
2010-08-16  6:40                     ` Dmitry A. Kazakov
2010-09-04 20:46                     ` Florian Weimer
2010-08-15 15:39         ` Yannick Duchêne (Hibou57)
2010-08-15 15:31       ` Yannick Duchêne (Hibou57)
2010-08-15 15:30     ` Yannick Duchêne (Hibou57)
2010-08-15 16:10       ` Dmitry A. Kazakov
2010-08-16 10:57     ` Stephen Leake
2010-08-15 15:58 ` Simon Wright
2010-08-15 16:03   ` Florian Weimer
2010-08-17  3:32     ` Randy Brukardt
2010-08-16  9:12 ` anon
replies disabled

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