This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes send or recieve message between ports. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "send or recieve message between ports." Watch "send or recieve message between ports." New topic
Author

send or recieve message between ports.

aresh babu
Ranch Hand

Joined: Aug 31, 2008
Posts: 65
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

Joined: Mar 10, 2008
Posts: 1761
    
    7

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.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: send or recieve message between ports.