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


Groups > comp.lang.python > #38716

Re: Python recv loop

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Python recv loop
Date 2013-02-11 21:44 -0500
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-016322.21444811022013@news.panix.com> (permalink)
References <mailman.1612.1360544258.2939.python-list@python.org> <roy-CC4632.21243210022013@news.panix.com> <mailman.1655.1360594595.2939.python-list@python.org>

Show all headers | View raw


In article <mailman.1655.1360594595.2939.python-list@python.org>,
 Ihsan Junaidi Ibrahim <ihsan@grep.my> wrote:

> I'm running JSON for my application messaging protocol but with JSON and 
> python default unordered dict,
> there's no guarantee if I put in the length key in the JSON message, it will 
> be placed on the first bytes hence
> why it was designed for a fixed 4-byte at the start of the message to 
> indicate the message length.
> 
> Beyond the 4-bytes it is all JSON.

I'm confused.  It sounds like you're making things way more complicated 
than they have to be.  Can you give us an example of an actual data 
message?

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


Thread

Python recv loop Ihsan Junaidi Ibrahim <ihsan@grep.my> - 2013-02-11 08:48 +0800
  Re: Python recv loop Roy Smith <roy@panix.com> - 2013-02-10 21:24 -0500
    Re: Python recv loop Ihsan Junaidi Ibrahim <ihsan@grep.my> - 2013-02-11 22:56 +0800
      Re: Python recv loop Roy Smith <roy@panix.com> - 2013-02-11 21:44 -0500
    Re: Python recv loop MRAB <python@mrabarnett.plus.com> - 2013-02-11 15:11 +0000
    Re: Python recv loop Chris Angelico <rosuav@gmail.com> - 2013-02-12 02:24 +1100
    Re: Python recv loop Ihsan Junaidi Ibrahim <ihsan@grep.my> - 2013-02-12 09:41 +0800
    Re: Python recv loop Chris Angelico <rosuav@gmail.com> - 2013-02-12 13:20 +1100
    Re: Python recv loop MRAB <python@mrabarnett.plus.com> - 2013-02-12 03:09 +0000

csiph-web