Re: [Tutor] stuck again - socket connection

2006-02-07 Thread nephish
Yeah, looking over it right now as a point of fact. thanks. Looks like exactly what i need. cheers shawn On Tue, 2006-02-07 at 10:43 -0800, Danny Yoo wrote: > > > from the docs, the byte stream is supposed to look like this: > > > [problem cut] > > > > so. how do i make 200 occupy 4 bytes ?

Re: [Tutor] stuck again - socket connection

2006-02-07 Thread Danny Yoo
> from the docs, the byte stream is supposed to look like this: > [problem cut] > > so. how do i make 200 occupy 4 bytes ? Hi Nephish, Have you had a chance to look at the 'struct' module yet? http://www.python.org/doc/lib/module-struct.html __

[Tutor] stuck again - socket connection

2006-02-07 Thread nephish
ok, i am stuck again. from the docs, the byte stream is supposed to look like this: 'S' 'T' 'X' [length indicator] [message type] [message] 'E' 'N' 'X' the length indicator it says is a four byte integer number of a value N ( N would be how long the message body is ) the message ty