Simple Datagrams Example

  Download Code
Downloads:484 Bookmark this code Bookmark and Share
Rank : 2/5
Rated by : 2 user(s)
Developer:Junaid Shabbir  |   35 submission(s)
Date Uploaded:November 07,2007
Level:Begginer
Size: 1.5 KB
Category:Java -> Network Applications
Developer Says:

This sample code makes use of Datagram Connection to send a text message from sender to receiver (Sender and receiver can be on the same computer as in this example, or different computers with network connection between them). To run this code, open two instances of Command Prompt(Terminal), first to run the sender and the other for receiver. If you want to run this example on 2 different computers, then use InetAddress.getByName("pc-name") in the sender code in place of InetAddress.getLocalHost();


User Reviews
There are no user reviews on this code
Leave a Comment
Age (Required, will not be shown)
Name
Email (Required, will not be shown)
Website (Optional, starting with http://)
 
Rate this code
Poor   1 2 3 4 5   Outstanding
Are you human ?

Enter the code shown above