Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why java.net  RSS feed

 
Tamara J
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
before I go and ready what is inside java.net, I would like to hear from you
what Java can do for Networking programmers.
I can see this package is helping me to find the IP address of any host in the net, also this package can help to creat a socket etc? but my question how these tools/class can help me with my networking program? any idea where and how they are used?
I would appreciate and hint, examples, etc.
PS: I am not networking programmer
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.net is a collection of classes that takes away some of the drugery and work writing a task that uses IP protocol. Of course you get all the benefits of the java platform too.
What are you hoping your networking program will do?
Have you ruled out RMI and a CORBA solution to your problem?
 
Tamara J
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets say the programm I want to write is to share files between internet users like Kazza for example. btw I do not know how RMI and CORBA work yet!!
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google tells me that Kazza is a file sharing system. I would suspect that this could be accomplished with an FTP server or a Web Server. Both of these servers run on the TCP/IP protocol.
java.net supports writing sockets in TCP/IP but I would not think you would have to go to that low of a level.
Off the top of my head and with what you've told me is sound like you might research MIME types, and HTTP get and put commands.
HTH
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!