Re: [Tutor] Networking

2010-11-08 Thread Chris King
On 10/14/2010 9:28 PM, James Mills wrote: On Fri, Oct 15, 2010 at 11:22 AM, chris wrote: But what if I want it to serve one client, go to another and then go back. How does that work? You do some I/O multi-plexing or multi-processing/threading. You might want to do some reading on this. che

Re: [Tutor] Networking

2010-10-15 Thread James Mills
On Fri, Oct 15, 2010 at 3:06 PM, Evert Rol wrote: > The very last example on http://docs.python.org/library/socketserver.html may > help you. > Or perhaps the asyncore/asynchat modules. Alternatively Twisted (1) or circuits (2) cheers James 1. http://twistedmatrix.com/trac/ 2. http://bitbucket

Re: [Tutor] Networking

2010-10-14 Thread Evert Rol
>>> But what if I want it to serve one client, go to another and then go back. >>> How does that work? > > You do some I/O multi-plexing or multi-processing/threading. > > You might want to do some reading on this. The very last example on http://docs.python.org/library/socketserver.html may he

Re: [Tutor] Networking

2010-10-14 Thread James Mills
On Fri, Oct 15, 2010 at 11:22 AM, chris wrote: >> But what if I want it to serve one client, go to another and then go back. >> How does that work? You do some I/O multi-plexing or multi-processing/threading. You might want to do some reading on this. cheers James -- -- James Mills -- -- "Pro

Re: [Tutor] Networking

2010-10-14 Thread chris
On 10/14/2010 12:49 PM, Evert Rol wrote: Hi Chris, Bit hard to comment on the actual code, as it was in attachments, but the important bit is here: class Handler(SocketServer.BaseRequestHandler): #the handler '''A handler which calls %s in the handle method.'''%handle_func

Re: [Tutor] Networking

2010-10-14 Thread Evert Rol
Hi Chris, Bit hard to comment on the actual code, as it was in attachments, but the important bit is here: class Handler(SocketServer.BaseRequestHandler): #the handler '''A handler which calls %s in the handle method.'''%handle_func def handle(self): #the handle method

Re: [Tutor] Networking

2010-10-11 Thread Chris King
On 10/3/2010 7:20 PM, Chris King wrote: On 10/2/2010 3:40 PM, Evert Rol wrote: Dear Tutors, I have attached my 2 programs for networking. It uses socket and SocketServer, but it just simplifies it even more. The problem is it won't work. The Client raises the error, (with trace back) T

Re: [Tutor] Networking

2010-10-03 Thread Chris King
On 10/2/2010 3:40 PM, Evert Rol wrote: Dear Tutors, I have attached my 2 programs for networking. It uses socket and SocketServer, but it just simplifies it even more. The problem is it won't work. The Client raises the error, (with trace back) Traceback (most recent call last): File "

Re: [Tutor] Networking

2010-10-02 Thread Evert Rol
> Dear Tutors, > I have attached my 2 programs for networking. It uses socket and > SocketServer, but it just simplifies it even more. The problem is it won't > work. The Client raises the error, (with trace back) > Traceback (most recent call last): > File "G:\My Dropbox\My Dropbox\Chris\N

[Tutor] Networking

2010-10-02 Thread Chris King
Dear Tutors, I have attached my 2 programs for networking. It uses socket and SocketServer, but it just simplifies it even more. The problem is it won't work. The Client raises the error, (with trace back) Traceback (most recent call last): File "G:\My Dropbox\My Dropbox\Chris\Not done\c

Re: [Tutor] networking

2004-12-28 Thread Bill Burns
On Monday 27 December 2004 4:22 pm, Marco wrote: > Hi python tutors, > Im interested on learning python but i would like to focus in a specific > topic, networking, where can i find documention networking in python? > sockets and all that stuff? i looked for some information but all of them > were

Re: [Tutor] networking

2004-12-28 Thread Alan Gauld
> Im interested on learning python but i would like to focus in > a specific topic, networking, where can i find documention > networking in python? sockets and all that stuff? Look at the sockets module documentation. If you know how to use sockets in C or Perl then it should be obvious. Als

Re: [Tutor] networking

2004-12-27 Thread Simon Kongshøj
Hello Marco, Here are a few good places to start when going into networking with Python: Socket Programming in Python HOWTO: http://www.amk.ca/python/howto/sockets/ Documentation for the Python socket module: http://docs.python.org/lib/module-socket.html O'Reilly Network articles about Python netwo

Re: [Tutor] networking

2004-12-27 Thread ææå
Hi, I think you can try the mailing-list WEB-SIG http://mail.python.org/mailman/listinfo/web-sig Juan Marco wrote: Hi python tutors, Im interested on learning python but i would like to focus in a specific topic, networking, where can i find documention networking in python? sockets and all

[Tutor] networking

2004-12-27 Thread Marco
Hi python tutors, Im interested on learning python but i would like to focus in a specific topic, networking, where can i find documention networking in python? sockets and all that stuff? i looked for some information but all of them were just vague. thanks in advance, Marco -- "If knowledge