• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instant Messaging In Java

 
Paul Smith
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello People,

Does any of you know how to create an Instant Messenger in java. I'm not after the whole code on a 'plate', I'm after a guide/direction/where-to-look etc...

Thanks in advance
 
Elihu Smails
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google is where I would start. also look at protocols. Jabber might be a good one...
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I had to write one from scratch for an assignment I'd start with Sockets. Sun's All About Sockets is a great starting point.

One hint: The program on your desktop is likely to act as a client and a server at the same time. And the program you'd probably call the server will act as a server and client at the same time. Don't worry if that hurts your brain at first. See how clients and servers work and see if it makes sense.

Feel free to get some ideas into code and post them for comments. Have fun!
 
Mark Mescher
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should think of the logical Network you want to use. If you want a serverbased application perhaps you should use a own implementation using sockets. An alternate way would be the use of Jabber.
If you want a real P2P-solution you should try JXTA, the SUN P2P-Framework.
Bye
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic