Python recv loop

Roy Smith roy at panix.com
Mon Feb 11 21:44:48 EST 2013


In article <mailman.1655.1360594595.2939.python-list at python.org>,
 Ihsan Junaidi Ibrahim <ihsan at 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?



More information about the Python-list mailing list