Forums Register Login
is java.net package only tcp based?
i mean, InetAddress, Socket, URL etc, classes. They are TCP-IP based. For lower levels what should one do?
Java doesn't have direct support for the IP layer or for any hardware.
DatagramSocket supports UDP, but that's about it. If you want to do anything at a lower level, you have to resort to native methods. You can do a Google search on this, and you'll definitely find something, as I know many people have implemented, for example, ICMP in Java via native methods.
Salut Ernest,
I have been investigating myself through the "Java Cookbook" by Ian Darwin for a while. and nowadays I am at the Network Clients. I just would like to get the theory and also why of the things, in addition to the how..
Anyway, Socket seems to be integrated with TCP Protocol.and my mind says it should be protocol independent. (like the servlets: all of the servlets till now have been HTTP Servlets, but of course anybody can write FTP servlets or what so ever. if a vendor supplies the ftp servlet container. Is that the same for the socket?

This thread has been viewed 701 times.

All times above are in ranch (not your local) time.
The current ranch time is
Oct 17, 2018 19:01:47.