IP in java.net

E

Eli

Hello,
Been playing lately with the TCP and UDP sockets in the java.net
package, a question came up: using Java, can one reach the Ethernet
and the IP layers? In other words, is there a way to compose IP
datagrams and to compose ethenet frames?
I know you can play with the Datagram Socket/Packet classes to build
UDP connection, which is a bit more than an IP connection, but I'm
just keen on playing inside the IP level if this is possible in Java.
That was done in past C projects.
TIA.
 
M

Matt Humphrey

Eli said:
Hello,
Been playing lately with the TCP and UDP sockets in the java.net
package, a question came up: using Java, can one reach the Ethernet
and the IP layers? In other words, is there a way to compose IP
datagrams and to compose ethenet frames?
I know you can play with the Datagram Socket/Packet classes to build
UDP connection, which is a bit more than an IP connection, but I'm
just keen on playing inside the IP level if this is possible in Java.
That was done in past C projects.
TIA.

No. Nor can you "ping." You have to use JNI to reach those services. Try
this: http://www.davidreilly.com/java/java_network_programming/#3.5

Cheers,
Matt Humphrey (e-mail address removed) http://www.iviz.com/
 
E

Eli

Heaps of thanks Matt,
The contents of that website will be my retreat for the next few days :)
Cheers,
Eli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top