Re: struct.unpack() on a stream

2009-02-27 Thread Gabriel Genellina
En Fri, 27 Feb 2009 10:10:39 -0200, MRAB escribió: Gabriel Genellina wrote: En Fri, 27 Feb 2009 09:29:16 -0200, Ulrich Eckhardt escribió: I have a socket from which I would like to parse some data, how would I do that? Of course, I can manually read data from the socket until unpack(

Re: struct.unpack() on a stream

2009-02-27 Thread MRAB
Gabriel Genellina wrote: En Fri, 27 Feb 2009 09:29:16 -0200, Ulrich Eckhardt escribió: I have a socket from which I would like to parse some data, how would I do that? Of course, I can manually read data from the socket until unpack() stops complaining about a lack of data, but that sounds r

Re: struct.unpack() on a stream

2009-02-27 Thread Gabriel Genellina
En Fri, 27 Feb 2009 09:29:16 -0200, Ulrich Eckhardt escribió: I have a socket from which I would like to parse some data, how would I do that? Of course, I can manually read data from the socket until unpack() stops complaining about a lack of data, but that sounds rather inelegant. Any be

struct.unpack() on a stream

2009-02-27 Thread Ulrich Eckhardt
Hi! I have a socket from which I would like to parse some data, how would I do that? Of course, I can manually read data from the socket until unpack() stops complaining about a lack of data, but that sounds rather inelegant. Any better suggestions? Uli -- Sator Laser GmbH Geschäftsführer: Tho