![]() |
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.
|
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". |
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
|
| All times are GMT -5. The time now is 1:17 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC