Socket programming.

Kjetil Ødegaard kjetilod at stud.ntnu.no
Fri Jul 2 12:10:20 EDT 1999


I'm trying to implement a simple irc module as the base for a simple
irc client.  However, I'm having some design problems, having never
done any socket programming before.

My current implementation is threaded (using fork()); one thread for
user interaction and one for server output.  It uses blocking
sockets.  It works ok, but I've read some docs here and there (amongst
them the Socket Programming HOWTO on www.python.org) and I get the
feeling I should be using select() and non-blocking sockets.  Also,
I'm not sure I want to use fork() -- it seems very low-level and
depends on a Unix-like system.

Advice would be appreciated.  If you think I'm being unclear or vague
-- you're probably right. ;)  I'm not really sure what I'm asking,
either.

-- 
Gravity brings me down.




More information about the Python-list mailing list