• Post Reply Bookmark Topic Watch Topic
  • New Topic

Chat systems based on TCP & UDP

 
Vikram Mahadevan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I missed out a word "about", in my previous post, so I am correcting it now.
I want to develop 2 chat systems, one based on TCP & the other based on UDP. I have heard that JAVA wud be great for this.
But since I don't know much "about" either a chat system nor the JAVA APIs for such a system, can somebody give me some insights.
Thanks a lot for your time.
 
Sri Nivas
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do not need to repost to correct your message. Just use the edit icon.
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vikram Mahadevan:
Hi,
I want to develop 2 chat systems, one based on TCP & the other based on UDP. I have heard that JAVA wud be great for this.

Hi vikram
You may want to explore the java.net package for your purpose . Moreover you will have to explore the Socket and ServerSocket class in the java.net package to build a proper messaging chat system. By this way you can implement TCP. I don't know what do you want to build another application using UDP when Socket would solve the purpose.
hope this helps
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Explore java.net.DatagramSocket for UDP.
- Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!