Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

IM status checker

  1. Jul 25, 2011 #1
    Hello
    I am developing Instant messaging application using java, i want to know how status checker algorithms work?.. I searched on google but i didn't get any useful link.
    thanks
     
  2. jcsd
  3. Jul 25, 2011 #2

    chiro

    User Avatar
    Science Advisor

    What protocol and network do you want to use?

    Maybe Trillian is a good place to start?

    http://sourceforge.net/projects/trilldev/
     
  4. Jul 25, 2011 #3
    Iam using tcp/ip...
    What i was thinking about is to let the user listen in a specific port, and in order for another user to know that the first user is online, is to try to connect to him at that port if a socket is bounded then it is online if not then it is offline.
     
  5. Jul 25, 2011 #4

    chiro

    User Avatar
    Science Advisor

    You will need to do something a bit more higher level.

    The application protocol for IM will use something like a protocol in TCP/IP family.

    My advice to you is to get some specific specs about a particular IM protocol and use that to do what you need to do.

    What you're doing sounds like what typical port scanners do, but actually getting decent information from a client means you will need to do something more specialized.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook