• Post Reply Bookmark Topic Watch Topic
  • New Topic

packet sniffer in java  RSS feed

 
Neha Mohit
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,

I am not sure but can i implement a packet sniffer using java , i googled a lot but came out with nothing worthwile . I need to sniff tcp and udp packets from a network . is there any java api or method other than JNI to do it.


hope i make sense

regards
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, this can't be done in Java without JNI. But there are libraries that implement this (e.g. jpcap on SourceForge); those take some of the pain out of using JNI.
 
Dilpreet Singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How Do U do Sniffing using JAVA?
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, in addition to being the better part of four months old, the question was already answered by Ulf so I suggest looking at that reply.
 
Joni Salonen
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest looking into the javax.olfaction package. It's included in the standard in the upcoming release of Java 8.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!