Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why does not java support raw sockets?

800670Dec 27 2010 — edited Jan 2 2011
Java does not have support for raw sockets, that means it cannot receive the packet header, just the payload data.
But the header data of an ICMP packet consists of 20 bytes, and you can still write single bytes in Java, so why isn“t is possible to write a header for an ICMP packet in Java?

Can someone explain how it all works?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2011
Added on Dec 27 2010
5 comments
1,861 views