Re: [Tutor] sockets

2007-06-18 Thread Linus Nordström
= self.s.recv(4096) if not self.buf: break all_data.append(self.buf) return all_data On 6/18/07, Linus Nordström <[EMAIL PROTECTED]> wrote: > Hello > I'm trying to rewrite a chat-program i did in school this spring in > python, the school prog

Re: [Tutor] sockets

2007-06-17 Thread Linus Nordström
Oh, thank you, exactly what i was looking for :) On 6/18/07, Andreas Kostyrka <[EMAIL PROTECTED]> wrote: > Tip: consult the documentation of the struct module. > > Andreas > > -- Ursprüngl. Mitteil. -- > Betreff:[Tutor] sockets > Von:"Linus Nordst

[Tutor] sockets

2007-06-17 Thread Linus Nordström
Hello I'm trying to rewrite a chat-program i did in school this spring in python, the school program was in java. All this to leran python. Anyway. I m trying to send a message using udp to a server that conntains the message 3 0 0 0, it has to be in network byte order and unsigned. I have tried t