Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating ip packetsin java

 
yash bhatnagar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i create a ippacket in java
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
try the java.net packet. there are Datagrams, Sockets...all you need.
k
 
Joel Peach
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just an additional note. Using the JDK facilities you won't be able to create an IP packet directly. The JDK operates at a much higher level and allows you to get an output stream and write to it, from which IP packets are created, but they're out of your direct reach.
Best of luck!
-Joel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic