[Tutor] Re: How to connect a MUD client? (fwd) (original) (raw)
Nick Lunt nick at javacat.f2s.com
Sat Jul 31 00:24:14 CEST 2004
- Previous message: [Tutor] Re: How to connect a MUD client? (fwd)
- Next message: [Tutor] redirecting help -- is this a bad idea?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>> tn = telnetlib.Telnet('mudlib.anarres.org', 5000) >>> tn.readveryeager()
Sorry, I am not able to understand "tn.readveryeager()", could you please explain it?
Hi there,
just to let you know (in case you dont :] ) the python command line has a useful help() function. Try this
import telnetlib help(telnetlib.Telnet.read_very_eager)
This works for most python modules, eg
import socket help(socket)
On another note, if your interested in doing some network programs with python, twisted as mentioned in a previous post is exceptionally good for it. Im a learner pythonist like yourself, and i started off writing a couple of network programs using the socket module, then I came across twisted, and it really is a good framework for network programming. I managed to create a simple chatserver using twisted quite easily. I strongly recommend you to visit http://docs.python.org/tut/tut.html and then www.twistedmatrix.com .
Good luck Nick.
- Previous message: [Tutor] Re: How to connect a MUD client? (fwd)
- Next message: [Tutor] redirecting help -- is this a bad idea?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]