comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada Networking (General/Design)
Date: Mon, 13 Aug 2012 15:11:54 +0200
Date: 2012-08-13T15:11:54+02:00	[thread overview]
Message-ID: <1mh1yp066mx2s$.qm3xmvhevpf$.dlg@40tude.net> (raw)
In-Reply-To: 2de69490-cbc2-4f58-af8a-db5bee3fd665@googlegroups.com

On Mon, 13 Aug 2012 05:33:28 -0700 (PDT), Patrick wrote:

> Does anyone have a favourite approach to TCP/IP ?

TCP vs. UDP changes little (when point to point). You still have packet
even when sent over TCP stream. It is difficult to outline a universal
solution for all case.

There are a reader and a writer tasks encapsulated into I/O objects. There
are packages implementing protocol layers. Each layer object derives from
or otherwise uses the lower level object in a mix-in. Lower layers provide
operations for the higher levels and define abstract operations or callback
to override. Two tasks have the advantage of having it full-duplex
(performance, deadlock prevention upon protocol errors), being able to use
blocking calls. It may impose some difficulties as you would likely have to
route actions from the writer to the reader task.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-08-15  2:48 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-12 20:26 Ada Networking (General/Design) Shark8
2012-08-12 23:05 ` Shark8
2012-08-13  0:10 ` sbelmont700
2012-08-13  0:25   ` Shark8
2012-08-13  7:11 ` Dmitry A. Kazakov
2012-08-13 12:33   ` Patrick
2012-08-13 13:11     ` Dmitry A. Kazakov [this message]
2012-08-13 13:12     ` Marc C
2012-08-13 13:31       ` Dmitry A. Kazakov
2012-08-13 15:51         ` tmoran
2012-08-13 16:19           ` Dmitry A. Kazakov
2012-08-13 16:30             ` Patrick
2012-08-13 16:53               ` Patrick
2012-08-13 18:18               ` Dmitry A. Kazakov
2012-08-13 20:36               ` anon
2012-08-14  5:40                 ` Patrick
2012-08-13 19:11             ` tmoran
2012-08-13 20:03               ` Dmitry A. Kazakov
2012-08-13 20:28                 ` tmoran
2012-08-14 10:14                   ` Dmitry A. Kazakov
2012-08-14 17:57                     ` tmoran
2012-08-13 17:54         ` Marc C
2012-08-13 18:28           ` Dmitry A. Kazakov
2012-08-13 18:59             ` Marc C
2012-08-13 19:16               ` Dmitry A. Kazakov
2012-08-14  8:39         ` Maciej Sobczak
replies disabled

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