comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Broadcast / iterate to all Connection objects via Simple Components?
Date: Mon, 13 Feb 2023 09:30:22 +0100	[thread overview]
Message-ID: <tscseu$23ce9$1@dont-email.me> (raw)
In-Reply-To: <c0124827-aeec-40a2-bbd7-fefa4264b4e4n@googlegroups.com>

On 2023-02-13 08:28, Emmanuel Briot wrote:
> I am not sure how familiar you are with Network programming in general (not just as it would be done in Ada).
> Using a blocking Send could actually kill your performance.
[...]
> A similar approach when receiving messages from clients, by the way.  The message might have sent only part of its message, so you
> need to give up temporarily, and come back to it when poll tells you there is something new to read.

Yes. All networking in Simple components is built on non-blocking 
sockets (socket select).

P.S. This poses difficulties for users, who see all communication turned 
upside down being driven by arbitrary socket events rather than by the 
protocol logic. This was a reason I argued for introducing co-routines 
with task interface in Ada.

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

  reply	other threads:[~2023-02-13  8:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-07 20:29 Broadcast / iterate to all Connection objects via Simple Components? A.J.
2023-02-08  8:55 ` Dmitry A. Kazakov
2023-02-08  9:55 ` Jeffrey R.Carter
2023-02-13  7:28   ` Emmanuel Briot
2023-02-13  8:30     ` Dmitry A. Kazakov [this message]
2023-02-13  8:44       ` Emmanuel Briot
2023-02-13 10:55         ` Dmitry A. Kazakov
2023-02-13 11:07           ` Emmanuel Briot
2023-02-13 11:57             ` Dmitry A. Kazakov
2023-02-13 13:22               ` Niklas Holsti
2023-02-13 15:10                 ` Dmitry A. Kazakov
2023-02-13 16:26                   ` Niklas Holsti
2023-02-13 19:48                     ` Dmitry A. Kazakov
2023-02-15  9:54                       ` Niklas Holsti
2023-02-15 10:57                         ` Dmitry A. Kazakov
2023-02-15 18:37                           ` Niklas Holsti
2023-02-19  1:27                             ` A.J.
2023-02-19  8:29                               ` Dmitry A. Kazakov
2023-02-19 14:37                               ` Niklas Holsti
2023-02-13 15:43                 ` J-P. Rosen
2023-02-13 16:40             ` Jeremy Grosser <jeremy@synack.me>
2023-02-13 20:33 ` Daniel Norte de Moraes
replies disabled

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