This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

creating ip packetsin java  RSS feed

 
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
Boost this thread!