This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send or recieve message between ports.

 
aresh babu
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please help me how to code for the below requirement...

My requirement is, System A generates a message on particular port 9002(This port number is fixed).

In my local system, i have to read that message from port 9002 and i have to process the message and i need to give the response back to the same 9002 port to the system A.

Please help how can i achieve this in java network programming..

Thanks & Regards
Aresh
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you already posted in the correct forum, I take it you know about Sockets?
You could have a look at the custom networking tutorial and read all about sockets, or all about datagrams, which ever suits your needs best.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic