Instant Messenger

Chris chrisc894 at hotmail.com
Mon Jul 29 21:17:18 EDT 2002


OK, first of all I've done this so far:
Set up a username registraion page and linked it to a MySQL database running
on my computer.  Everything there works well.

What I'm having trouble with:
Mostly (well, alright, completely) the design of how to implement it.

What I want to do:
I want to run the "server" on my computer that will accept connections,
validate the username and password sent by the "client" by checking for them
in the MySQL database.  Alright, simple enough.

Questions:
Once the server has validated the username and password, I want to store the
socket that I used to recv() the username and password so that I can send
messages to it later (i.e. when another user logs on).  Also, I want to be
able to keep a list of all the users logged in, which I guess is one in the
same with the last sentence.  Is any of this possible without threading?

My biggest problem is storing the sockets that recv() the username and
password, for now.

If anyone has any resources for me, would you please send me the links, or
if you have any ideas or suggestions, could you please post them.

Any help is appreciated.

thanks,
chris

Post-Script:
I do have network programming experience (i.e. sockets, et cetera).





More information about the Python-list mailing list