Re: reading from sockets

2006-08-13 Thread Simon Forman
AndrewTK wrote: > Simon Forman wrote: > > So I'm guessing it's something wrong in your java server. > > Thanks then. I'll keep testing then... Although I don't seem to have > netcat on my unit... > > I'm using a uni computer so I can't install stuff... but I'm guessing > what I wrote is something l

Re: reading from sockets

2006-08-13 Thread AndrewTK
Simon Forman wrote: > So I'm guessing it's something wrong in your java server. Thanks then. I'll keep testing then... Although I don't seem to have netcat on my unit... I'm using a uni computer so I can't install stuff... but I'm guessing what I wrote is something like a basic-basic thingy that

Re: reading from sockets

2006-08-13 Thread AndrewTK
Simon Forman wrote: > So I'm guessing it's something wrong in your java server. Thanks then. I'll keep testing then... -- http://mail.python.org/mailman/listinfo/python-list

Re: reading from sockets

2006-08-12 Thread Simon Forman
AndrewTK wrote: > > I'm assuming that your server waits to receive the word 'hello' before > > replying with the three strings (first, second, and third)? So once your > > Nope - actually it's a threaded "server", with the main thread simply > dumping network input to the console and command line

Re: reading from sockets

2006-08-12 Thread AndrewTK
Follow up the actual python code is at http://www.dcs.st-and.ac.uk/~atk1/singleclient.py -- http://mail.python.org/mailman/listinfo/python-list

Re: reading from sockets

2006-08-12 Thread AndrewTK
> I'm assuming that your server waits to receive the word 'hello' before > replying with the three strings (first, second, and third)? So once your Nope - actually it's a threaded "server", with the main thread simply dumping network input to the console and command line input being directly dump

Re: reading from sockets

2006-08-10 Thread AlbaClause
AndrewTK wrote: > Hello, > > I'm trying to read data from a socket and I'm not seeing what I'm > expecting it seems to skip the first line of data. I am new to > Python and just trying to test what I can do with it... and it's not > looking pretty. > > > I have some Python code: > [

Re: reading from sockets

2006-08-10 Thread Simon Forman
AndrewTK wrote: > Hello, > > I'm trying to read data from a socket and I'm not seeing what I'm > expecting it seems to skip the first line of data. I am new to > Python and just trying to test what I can do with it... and it's not > looking pretty. > > > I have some Python code: > [

reading from sockets

2006-08-10 Thread AndrewTK
Hello, I'm trying to read data from a socket and I'm not seeing what I'm expecting it seems to skip the first line of data. I am new to Python and just trying to test what I can do with it... and it's not looking pretty. I have some Python code: [-- #! /usr/bin/py