----------------------------------------------------------------------------------
@MSGID: <Gp2cnVMsbIP3mKD0nZ2dnZfqn_ednZ2d@giganews.com>
bca5a1e5
@REPLY: <mq2dc2FktbjU2@mid.individual.net>
990e9675
@PID: PyGate 1.5.2
@TID: PyGate/Linux 1.5.2
@CHRS: ASCII 1
@TZUTC: 1100
@REPLYADDR c186282@nnada.net
@REPLYTO 3:633/10 UUCP
On 12/12/25 06:41, Andy Burns wrote:
> The Natural Philosopher wrote:
>
>> Well the daemon runs under xinetd...for sheer laziness. I guess I
>> could make it UDP.
>>
>> But I don`t know what problem that would solve.
>
> The data would arrive if a single packet got through the fog, whereas
> with tcp at least dour packets on sequence need to make it (or get
> retried) with UDP you could afford to spray each packet half a dozen
> times and if one of them makes it, you`re good ...
I once made a bi-directional client/server setup,
first Python, then `C`. One variant was TCP, the
other UDP. Probably could have used a config file
or defs ... but I never got to it.
On a clean LAN, both worked perfectly. However
with some outdoor devices (Pi2 + wifi dongle as
best I recall) both approaches had issues kind
of similar to what you described.
TCP, while "error resistant", was often VERY iffy.
UDP - well - easier/smaller to send. You could
scan each packet for obvious errors and, if a
fail, could ask for it again or just let the
pgm work around to sending that data again.
For almost all modern apps, TCP is best by far.
However iffy situations CAN still exist, so
UDP you add some IQ to MIGHT be better.
As I`ve said elsewhere, wifi can sometimes be
black magic. Weird RF shadows and multipaths
can be anywhere and it`s very hard to tell
what`s perfect placement.
Hmm ... apparently CANbus can be sent over
wifi - but you lose some error-checking so
there`s no gain. There are various dongles
for lower-freq data transmission too, but
never got around to trying them. Fidelity
might be worth losing some speed.
--- PyGate Linux v1.5.2
* Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 19/10 50/109 153/757 218/840 840 220/70
221/1 6 360 226/17 100
SEEN-BY: 229/426 240/1120 267/800 301/1 113 812
310/31 335/364 341/66 463/68
SEEN-BY: 633/10 280 414 418 420 422 509 2744
712/848 770/1 3 100 340 350
SEEN-BY: 772/210 220 230 5019/40 5020/715 848 1042
4441 12000 5030/49 722
SEEN-BY: 5030/1081 1474 5053/55 5061/133 5075/128
@PATH: 633/10 280 770/1 218/840 221/6 301/1
5020/1042 4441