comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: tasksing and TCP sockets
Date: Tue, 31 Jan 2006 00:59:45 -0600
Date: 2006-01-31T00:59:45-06:00	[thread overview]
Message-ID: <SfWdnT1feI18l0LeRVn-uw@comcast.com> (raw)
In-Reply-To: uoe1tf7c8.fsf@acm.org

>You should _not_ need delay statements. Redesign to be waiting on
>socket completions.
  If the allowed response latency isn't terribly short (and it doesn't
sound like it is here) there's nothing wrong with letting the system
buffer up input while the reading task does a delay.  Just use a blocking
socket and poll to see if there's more input data available.  Remember
that "waiting on socket completions" in Windows means "polling the Windows
message loop for a socket completion message".
  But it seems to me that if the object is to use TCP to emulate hardware,
one should design for that hardware and do whatever is needed with UDP or
TCP to make the best emulation.  Is the intended hardware going to be
polled or generate interrupts or Windows messages or what?



  reply	other threads:[~2006-01-31  6:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-30 22:12 tasksing and TCP sockets Rolf
2006-01-31  2:40 ` Stephen Leake
2006-01-31  6:59   ` tmoran [this message]
2006-01-31 23:03     ` Rolf
2006-02-01  1:26       ` Stephen Leake
2006-02-01  7:39         ` Rolf
2006-02-01 14:52           ` Stephen Leake
2006-02-03 20:33             ` Rolf
2006-02-04 12:48               ` Stephen Leake
2006-02-06  5:02     ` Dave Thompson
2006-01-31 22:52   ` Rolf
2006-02-01  1:23     ` Stephen Leake
2006-02-01 21:12       ` Simon Wright
2006-01-31  3:02 ` Steve
2006-01-31 10:09 ` Dmitry A. Kazakov
2006-01-31 21:55   ` Simon Wright
2006-02-01  8:54     ` Dmitry A. Kazakov
replies disabled

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