Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java's network programming power (simple question)

 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to Java's power for network programming.
I saw many p2p program which is so power and secure and written in our
friend Java.
But I have little question.
Does Java has the same power as C++ in network programming?
[ April 11, 2008: Message edited by: omi sharma ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a much newer language than C++, Java had Network programming in mind from the very beginning. You can see this in the java.net and java.io package design, for example. Sun Microsystem's slogan "the network is the computer" should tell you that.

In the standard library and a huge variety of open-source toolkits you will find a very large number of alternatives for network programming. Browse through the last few months of conversations in this forum for examples.

Bill
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have explained a lot in very few words.
I have known what's your mean.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the other hand: the standard Java libraries provide access only to the TCP and UDP protocols. If you want to do lower level stuff (ICMP, ARP, any kind of direct IP packet fiddling), you have to resort to native code (i.e., C/C++ additions to Java).
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic