What is the internal process involved in chatting?

Hi guys..!

I want to know the internal process that will be done during the chatting in any messenger (yahoo or gtalk or reddif) ?

Suppose I am online, and assume that my friend is also online..! If I open her contact and say hi, immediately she will reply me by saying hi and it will displays..! What is the process internally going on here...! How my hi will be carried to her?

And What is the process done if my friend is offline..? If I say hi to her, then the message will be stored and displayed to her when she comes online..! What is the internal process here?

guys..! Please answer my question..! And sorry I am wrong?

Replies

  • Mahesh Dahale
    Mahesh Dahale
    Chat works by using a computer, called a server, to store and forward text messages.

    -The client sends the server the connection information (IP address and number of the port assigned to the client) of the computer you are using. It also provides the user with the names of everyone in your contacts list.

    - The server creates a temporary file that has the connection information for you and the list of your contacts. It then checks to see if any of the users in your contact list are currently logged in.

    - If the server finds any of your contacts logged in, it sends a message back to the client on your computer with the connection information for that user. The server also sends your connection information to the people in your contact list that are signed on.

    - When your client gets the connection information for a person in your contact list, it changes the status of that person to "online." You click on the name of a person in your contact list who is online, and a window opens that you can enter text into. You enter a message and click "send" or hit return to communicate with that person.

    - Because your client has the IP address and port number for the computer of the person that you sent the message to, your message is sent directly to the client on that person's computer. In other words, the server is not involved at this point. All communication is directly between the two clients.

    - The other person gets your instant message and responds. The window that each of you sees on your respective computers expands to include a scrolling dialog of the conversation. Each person's instant messages appears in this window on both computers.

    - When the conversation is complete, you close the message window.
    Eventually, you go offline and exit. When this happens, your client sends a message to the server to terminate the session. The server sends a message to the client of each person on your contact list who is currently online to indicate that you have logged off. Finally, the server deletes the temporary file that contained the connection information for your client. In the clients of your contacts that are online, your name moves to the offline status section.

    Get a better understanding of how chat works with help from an experienced computer user in this free video on using the Internet.

    #-Link-Snipped-#

    source ehow
  • Sahithi Pallavi
    Sahithi Pallavi
    Thanks a ton mahesh for your information.!!

You are reading an archived discussion.

Related Posts

Can anyone tell me What is the role of JRE and JVM in Java? And what is the difference between those two?
Google has launched a new tool called 'Swirl', which will help users to find images in an easier way. The tool automatically groups similar images into categories presented on results...
License: Freeware Operating systems: Win XP/Windows Vista/Win 2000/Win 2003 Server File size: 17.5MB Wireshark (previosuly known as Ethereal) is a popular, free tool for analysing your network. Wireshark analyzes the...
Microsoft Corp said on Tuesday it will launch its long-awaited Windows Azure cloud computing system on Jan 1, as it looks to take advantage of the growing interest in internet-based...
I just got the news that our CEan Mahesh_Dahale is now Microsoft Certified Professional 😁😁😁 Heartiest congratulations to Mahesh! Rock on!