Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Messenger users online/offline?

Messenger users online/offline?

Scheduled Pinned Locked Moved Visual Basic
sysadminquestion
11 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DK KiloDunse
    wrote on last edited by
    #1

    How do a messenger server/clients updates the online/offline stat. in real time? If the server has a connection for all the clients, (and there is a lot, 33000+ clients), you would need two or more computers??? I’m I right???? No good. Server pings all of the clients??? Takes a lot of bandwidth from the internet line, and takes a lot of time. Also no good. Any ideas?

    C R 2 Replies Last reply
    0
    • D DK KiloDunse

      How do a messenger server/clients updates the online/offline stat. in real time? If the server has a connection for all the clients, (and there is a lot, 33000+ clients), you would need two or more computers??? I’m I right???? No good. Server pings all of the clients??? Takes a lot of bandwidth from the internet line, and takes a lot of time. Also no good. Any ideas?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I'd have thought that there is a central database, which there needs to be to store IP addresses from login to login, and that each client requests the info for the users they have in their contacts. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

      A 1 Reply Last reply
      0
      • C Christian Graus

        I'd have thought that there is a central database, which there needs to be to store IP addresses from login to login, and that each client requests the info for the users they have in their contacts. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        But what if the client's internet connection is lost? The client is stille online via. the database.

        C 1 Reply Last reply
        0
        • A Anonymous

          But what if the client's internet connection is lost? The client is stille online via. the database.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Our internet connection at work drops out quite a bit, and I've noticed it takes messenger about a minute to work out that I am no longer online. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

          D 1 Reply Last reply
          0
          • C Christian Graus

            Our internet connection at work drops out quite a bit, and I've noticed it takes messenger about a minute to work out that I am no longer online. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

            D Offline
            D Offline
            DK KiloDunse
            wrote on last edited by
            #5

            So the server should ping all of the clients??? via. the ip address from the database?? Or???

            C 1 Reply Last reply
            0
            • D DK KiloDunse

              So the server should ping all of the clients??? via. the ip address from the database?? Or???

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              My guess - the client checks regularly to see if it's still online, and what users on the contact list are still online. If the check is not recieved, the user is offline. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

              D 1 Reply Last reply
              0
              • C Christian Graus

                My guess - the client checks regularly to see if it's still online, and what users on the contact list are still online. If the check is not recieved, the user is offline. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

                D Offline
                D Offline
                DK KiloDunse
                wrote on last edited by
                #7

                Ok, thanks for the reply.

                1 Reply Last reply
                0
                • D DK KiloDunse

                  How do a messenger server/clients updates the online/offline stat. in real time? If the server has a connection for all the clients, (and there is a lot, 33000+ clients), you would need two or more computers??? I’m I right???? No good. Server pings all of the clients??? Takes a lot of bandwidth from the internet line, and takes a lot of time. Also no good. Any ideas?

                  R Offline
                  R Offline
                  Ray Cassick
                  wrote on last edited by
                  #8

                  My guess is that the server gets a connection event when the client drops off that end of the connection.


                  Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


                  D 1 Reply Last reply
                  0
                  • R Ray Cassick

                    My guess is that the server gets a connection event when the client drops off that end of the connection.


                    Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


                    D Offline
                    D Offline
                    DK KiloDunse
                    wrote on last edited by
                    #9

                    Witch means the server is connected at all times to the client, in a passive mode? Eg. ready to receive data.???? Not sending data?

                    F 1 Reply Last reply
                    0
                    • D DK KiloDunse

                      Witch means the server is connected at all times to the client, in a passive mode? Eg. ready to receive data.???? Not sending data?

                      F Offline
                      F Offline
                      Fade Amit BS
                      wrote on last edited by
                      #10

                      am telling you this for a fact, the messager has an open connection with the host, you can see it for yourself by using the "netstat -nao" command in the command prompt (run "cmd") this will show you all active connections on your computer, including the process ID associated with each connection. you can see which process id the messager uses using the Task Manager. Select the 'Processes' tab, and then 'View' -> 'Select Columns' (this option will only show when you're in the 'Processes' tab). then you'll see that the messanger process has an established connection. now, how is it done? as one server might not be able to support so many simultanious connections? If you will take a minute to experiment, you'll see that each time you log-on, the messanger logs on to a different IP, that's the load-balancing machanism, microsoft has many Messanger servers, each serving who knows how many users, and on the servers level, they are responsible for updating eachother. It sometimes takes a minute until the messanger detects a connection loss because connection loss on tcp connection is not always detectable, so it is only detected after some timeout occurs in your client (there is probably a reflecting timeout at the server side too) by the way, they probably went for the open connection architecture due to the fact that many users cannot accept incoming transmissions (everyone behind a router, ICS server, proxy, firewall etc.), the only way they can be sure they can send you data (like an incoming message) is an open connection you have initiated that's about it :) Fade (Amit BS)

                      D 1 Reply Last reply
                      0
                      • F Fade Amit BS

                        am telling you this for a fact, the messager has an open connection with the host, you can see it for yourself by using the "netstat -nao" command in the command prompt (run "cmd") this will show you all active connections on your computer, including the process ID associated with each connection. you can see which process id the messager uses using the Task Manager. Select the 'Processes' tab, and then 'View' -> 'Select Columns' (this option will only show when you're in the 'Processes' tab). then you'll see that the messanger process has an established connection. now, how is it done? as one server might not be able to support so many simultanious connections? If you will take a minute to experiment, you'll see that each time you log-on, the messanger logs on to a different IP, that's the load-balancing machanism, microsoft has many Messanger servers, each serving who knows how many users, and on the servers level, they are responsible for updating eachother. It sometimes takes a minute until the messanger detects a connection loss because connection loss on tcp connection is not always detectable, so it is only detected after some timeout occurs in your client (there is probably a reflecting timeout at the server side too) by the way, they probably went for the open connection architecture due to the fact that many users cannot accept incoming transmissions (everyone behind a router, ICS server, proxy, firewall etc.), the only way they can be sure they can send you data (like an incoming message) is an open connection you have initiated that's about it :) Fade (Amit BS)

                        D Offline
                        D Offline
                        DK KiloDunse
                        wrote on last edited by
                        #11

                        What can i say???, Thanks a lot for the reply!

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups