Re: socket client server... simple example... not working...

2006-10-05 Thread Fredrik Lundh
SpreadTooThin wrote: > but why is it every time I try to do something with 'stock' python I > need another package? it's well known that all problems known to man can be solved by down- loading Twisted, PyParsing, the Stream Editor, or that other programming language that cannot be named. --

Re: socket client server... simple example... not working...

2006-10-05 Thread Bryan Olson
SpreadTooThin wrote: > Jean-Paul many thanks for this and your effort. > but why is it every time I try to do something with 'stock' python I > need another package? Twisted has it's fan, but you don't "need" it. Your code had a few specific problems, and fixing them has little or nothing to do wi

Re: socket client server... simple example... not working...

2006-10-05 Thread SpreadTooThin
Jean-Paul Calderone wrote: > On 5 Oct 2006 07:01:50 -0700, SpreadTooThin <[EMAIL PROTECTED]> wrote: > > [snip] > > > >Jean-Paul many thanks for this and your effort. > >but why is it every time I try to do something with 'stock' python I > >need another package? > > Maybe you are trying to do thin

Re: socket client server... simple example... not working...

2006-10-05 Thread Jean-Paul Calderone
On 5 Oct 2006 07:01:50 -0700, SpreadTooThin <[EMAIL PROTECTED]> wrote: > [snip] > >Jean-Paul many thanks for this and your effort. >but why is it every time I try to do something with 'stock' python I >need another package? Maybe you are trying to do things that are too complex :) >By the time I'

Re: socket client server... simple example... not working...

2006-10-05 Thread SpreadTooThin
Jean-Paul Calderone wrote: > On 4 Oct 2006 19:31:38 -0700, SpreadTooThin <[EMAIL PROTECTED]> wrote: > >client: > > > >import socket > >s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > >s.connect(("192.168.1.101", 8080)) > >print 'Connected' > >s.send('ABCD') > > Here you didn't check the re

Re: socket client server... simple example... not working...

2006-10-04 Thread Jean-Paul Calderone
On 4 Oct 2006 19:31:38 -0700, SpreadTooThin <[EMAIL PROTECTED]> wrote: >client: > >import socket >s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >s.connect(("192.168.1.101", 8080)) >print 'Connected' >s.send('ABCD') Here you didn't check the return value of send to determine if all of the