Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 22nd, 2006, 2:27 AM   #1
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 579
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
IM Basics

Does anyone know where I could find a good source of how an IM program works? I have googled it and it doesnt help me much. I'm trying to figure out how one client can read what another client has sent and things like that.
__________________
Quote:
Originally Posted by DaWei View Post
Well, it's better than Pen Islands url....;)

crawforddavid2006 is offline   Reply With Quote
Old Dec 22nd, 2006, 3:31 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Different IM programs work in different ways, so it's difficult to answer this question with any detail.

But I can provide generalities. Say Bob decides to IM Carol with the message "Hello". The first step is that the IM client encodes the username and message together, ("Carol", "Hello"). Then it sends that packet off to a central server.

The server receives the data, and checks the username part ("Carol"). It checks through a table to see if Carol is currently connected to the server. If she is, then the server replaces the username part with the sender ("Bob"), and pushes it down Carol's IM connection.

Carol receives ("Bob", "Hello"), and this is rendered on screen as "Bob: Hello". That's basically all IM does, though things can get more complex. For more detail in a specific protocol, try Googling for some specs for "Jabber" or "XMPP".
Arevos is offline   Reply With Quote
Old Dec 22nd, 2006, 5:57 AM   #3
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 329
Rep Power: 3 kruptof is on a distinguished road
i have done couple of things like this in the past once in MFC and again in VB. It is not that hard once you understand the roles of clients and servers and also you should know a bit about sockets
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basics for GUI crawforddavid2006 C++ 11 Jun 17th, 2006 8:54 AM
Help on basics snipez JavaScript and Client-Side Browser Scripting 3 Feb 26th, 2006 5:06 PM
Porting Library, The Basics Of kurt C 2 Nov 13th, 2005 9:41 AM
visual programming basics?? thenewkid Java 1 Jan 19th, 2005 10:35 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:37 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC