Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,480 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,719 people online right now. Registration is fast and FREE... Join Now!




Client/Server chat application

 
Reply to this topicStart new topic

Client/Server chat application, what to keep in mind?

Moezzie
4 Feb, 2008 - 10:07 AM
Post #1

New D.I.C Head
*

Joined: 25 Nov, 2007
Posts: 44


My Contributions
I got so annoyed with msn the other day so i started looking onto coding a IM application myself.
After looking around i chose to start codingin it in python because of how easy it is to create and manage sockets and the availabillity of libraries of different kinds under linux(which is my main os).
This is not thought to be something that is supposed to be used by lots of people, i just kind of want to make it as a fun hobby project.

So my question to you is what do i have to think about now to make it easier for me in the future.
Some questions i though alot about are:
- What should my class tree look like?
- What would be a good way to authenticate users
- A good way to create the GUI(pyGTK or pyQT maybe wxPython)
- How to get the right message to the right user in a fast and smart way


Ive got the basic sending and recieving of messages working now and it really wasnt that hard. I always though it would be alot harder.
Im trying to make it kind o like the IRC-way with chatrooms and private chats between users.

This is the first bigger project i lay my hands on in python so im thankfull for any advice or comment you guys can bring up.
Thanks

User is online!Profile CardPM
+Quote Post

girasquid
RE: Client/Server Chat Application
4 Feb, 2008 - 01:16 PM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,266



Thanked: 14 times
Dream Kudos: 650
My Contributions
For the authentication of users, you'll probably want a database full of username/password combinations - so that users can authenticated and other users can look people up using the right username.

If you want to get the right message to the right user in a fast and smart way, have you considered UDP packets? I don't know which socket model you're using, but if you stored the IP address of a connected user, you could easily keep track of which users are in which chats, and where to send the packet.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 06:55PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month