File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sockets and Internet Protocols
Joined: Jun 04, 2007
Aug 29, 2007 22:17:00
I did a search and didn't come up with this....
Is there a way to do raw ethernet packets from
I looked through java.net and didn't see anything that jumped out at me....
SCJP - 86% - June 11, 2009
Joined: Aug 17, 2004
Aug 30, 2007 11:14:00
Java as a language only supports well-formed UDP and TCP packets, not raw packets. Technically, you can drop down through JNI and do it in C, but it'd probably be better to do in another language.
author and iconoclast
Joined: Jul 08, 2003
Aug 30, 2007 15:13:00
Note that Ethernet doesn't have packets, but rather "
". IP, which sits below TCP and UDP (the protocols Java gives you access to), has packets.
[Jess in Action]
I agree. Here's the link:
subject: Raw Ethernet
When someone sends a packet
Certification Results Are In!!! How did you do???
Java Program quit working after Windows Vista update: but no restore point set
does a nio socket buffer data internally too?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015