Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96995

Re: Lightwight socket IO wrapper

From "James Harris" <james.harris.1@gmail.com>
Newsgroups comp.lang.python
Subject Re: Lightwight socket IO wrapper
Date 2015-09-22 22:28 +0100
Organization A noiseless patient Spider
Message-ID <mtsh2k$obt$1@dont-email.me> (permalink)
References <mtm18o$9fm$1@dont-email.me><mailman.37.1442754893.21674.python-list@python.org><mtnc9q$pqs$1@dont-email.me><mailman.18.1442804862.28679.python-list@python.org><mtsc60$41t$1@dont-email.me> <8737y6cgp6.fsf@elektro.pacujo.net>

Show all headers | View raw


"Marko Rauhamaa" <marko@pacujo.net> wrote in message 
news:8737y6cgp6.fsf@elektro.pacujo.net...
> "James Harris" <james.harris.1@gmail.com>:
>
>> I agree with what you say. A zero-length UDP datagram should be
>> possible and not indicate end of input but is that guaranteed and
>> portable?
>
> The zero-length payload size shouldn't be an issue, but UDP doesn't 
> make
> any guarantees about delivering the message. Your UDP application must
> be prepared for some, most or all of the messages disappearing without
> any error indication.
>
> In practice, you'd end up implementing your own TCP on top of UDP
> (retries, timeouts, acknowledgements, sequence numbers etc).

The unreliability of UDP was not the case in point here. Rather, it was 
about whether different platforms could be relied upon to deliver 
zero-length datagrams to the app if the datagrams got safely across the 
network.

James

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Lightwight socket IO wrapper "James Harris" <james.harris.1@gmail.com> - 2015-09-20 11:22 +0100
  Re: Lightwight socket IO wrapper Akira Li <4kir4.1i@gmail.com> - 2015-09-20 16:15 +0300
    Re: Lightwight socket IO wrapper "James Harris" <james.harris.1@gmail.com> - 2015-09-20 23:36 +0100
      Re: Lightwight socket IO wrapper Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-20 20:19 -0400
        Re: Lightwight socket IO wrapper Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-09-21 17:46 +1200
        Re: Lightwight socket IO wrapper Jorgen Grahn <grahn+nntp@snipabacken.se> - 2015-09-21 11:25 +0000
        Re: Lightwight socket IO wrapper "James Harris" <james.harris.1@gmail.com> - 2015-09-22 20:45 +0100
          Re: Lightwight socket IO wrapper Random832 <random832@fastmail.com> - 2015-09-22 19:52 -0400
            Re: Lightwight socket IO wrapper Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-09-23 12:47 +1200
      Re: Lightwight socket IO wrapper Chris Angelico <rosuav@gmail.com> - 2015-09-21 10:34 +1000
      Re: Lightwight socket IO wrapper Akira Li <4kir4.1i@gmail.com> - 2015-09-21 06:07 +0300
        Re: Lightwight socket IO wrapper "James Harris" <james.harris.1@gmail.com> - 2015-09-22 21:05 +0100
          Re: Lightwight socket IO wrapper Marko Rauhamaa <marko@pacujo.net> - 2015-09-23 00:00 +0300
            Re: Lightwight socket IO wrapper "James Harris" <james.harris.1@gmail.com> - 2015-09-22 22:28 +0100

csiph-web