Instant Messaging Status Checker Algorithm in Java

  • Context: Java 
  • Thread starter Thread starter hisham.i
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the development of an instant messaging application in Java, specifically focusing on how status checker algorithms function. Participants explore various approaches and protocols related to checking user status in an instant messaging context.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant seeks information on status checker algorithms for an instant messaging application, indicating a lack of useful resources found online.
  • Another participant inquires about the specific protocol and network the original poster intends to use, suggesting the Trillian project as a potential resource.
  • A participant describes a method using TCP/IP where a user listens on a specific port, and another user attempts to connect to determine if the first user is online based on socket availability.
  • Another reply suggests that a higher-level application protocol is necessary for instant messaging, recommending that the original poster research specific IM protocols to obtain better functionality than what typical port scanning would provide.

Areas of Agreement / Disagreement

Participants present differing views on the appropriate methods for implementing a status checker algorithm, with no consensus reached on the best approach or protocol to use.

Contextual Notes

There are limitations regarding the assumptions made about network protocols and the effectiveness of the proposed methods, which remain unresolved in the discussion.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 14 ·
Replies
14
Views
6K
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 43 ·
2
Replies
43
Views
8K