• Post Reply Bookmark Topic Watch Topic
  • New Topic

sun.net.NetworkServer

 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Well ne one know about the sun.net.NetworkServer class and the whole package as such??
It is avail in the classes.zip that comes with jdk.. I looked around it but the class seems undocumented. I wonder why??
Regds
Gautham kasinath
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the "sun.*" classes are undocumented. They are not part of the official SDK, and not guaranteed to be present in any future versions, so if you do use any of them, use them with care ...
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Sheriff!
Well I guess I gotto take care in using them.. but then I was wondering if there was a doc on the same then why do I have to reinvent the wheel by writing a Server and a client thru my code.. why not let the sdk take care of the same... that would improve the performance wouldnt it??
Please guide me..
Regds
Gautham Kasinath
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well???
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware of any documentation on these classes. As I said, they are quite likely to change or go away with no notification from Sun, so it is not recommended to use them. Relying on an implementation which is not part of the standard, and may only work in some JVMs but not in others (IBMs VMs don't contain any proprietory Sun code, for example) is a very dangerous thing to do.
Given that there is source code for a wide variety of different servers available on the net, I would always recommend against using sun.* classes unless you really have no other choice.
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Well what I was wondering that if the exits an implementation for the Server - Client in JVM why do I have to re invent the wheel.
That is all.. but I guess I shall rely on your words that the use of the same is not recomended.
Regds
Gautham Kasinath
P.S. But i need the docs to know exactly what the classes have.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!