File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Java's network programming power (simple question) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Java Watch "Java New topic

Java's network programming power (simple question)

Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 598

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 ]

Most of the programming problems can't be solved because you don't know what the exact problem is.
Defining your problem correctly leads you to the right solution.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
As a much newer language than C++, Java had Network programming in mind from the very beginning. You can see this in the and 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.

Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 598

You have explained a lot in very few words.
I have known what's your mean.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

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).

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Java's network programming power (simple question)
It's not a secret anymore!