posted 14 years ago
Why aren't raw sockets supported in the java.net package? The Sun party line seems to be that it is because super user privilege is required on Unix platforms to open a raw socket. So what? Root privilege is required to start a ServerSocket on port 1000 but the net API wouldn't be much without ServerSockets. I think the real reason is they're afraid of Java being the ultimate hacker's kit. Just think how simple it would be to make a packet spoofer class with raw socket support. Or to launch a SYN flood DOS attack. Steath probes would be a cake walk. That's my opinion, what does everyone else think?