![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
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.
__________________
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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". |
|
|
|
|
|
#3 | |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 329
Rep Power: 3
![]() |
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:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |