Java Instant Messaging Status Checker Algorithm in Java

  • Thread starter Thread starter hisham.i
  • Start date Start date
AI Thread Summary
The discussion centers on developing a status checker algorithm for an instant messaging application using Java, specifically over TCP/IP. The initial inquiry highlights a lack of useful resources on this topic. Participants suggest starting with existing protocols, like those used by Trillian, and emphasize the importance of understanding specific instant messaging protocols. One participant proposes a method where users listen on a designated port, allowing others to check their online status by attempting to connect. However, they caution that this approach resembles port scanning and recommend a more specialized method to accurately determine user status. Overall, the conversation underscores the need for a solid understanding of IM protocols to effectively implement status checking in the application.
hisham.i
Messages
176
Reaction score
2
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
 
Technology news on Phys.org
hisham.i said:
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

What protocol and network do you want to use?

Maybe Trillian is a good place to start?

http://sourceforge.net/projects/trilldev/
 
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.
 
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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top