i am wrking on a project which is supposed to count packets that are sent and recieved in a LAN environment........i want help ragarding this....can anyone give ma a java code for counting packets in a network...
invokers
0
Newbie Poster
Recommended Answers
Jump to PostIs ths a Ethernet or Token Ring network?
Jump to PostYou need to use some JNI code or library if you wish to do packet sniffing in JAVA.
Easiest is use - Jpcap
Check http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html
Jump to PostTry this.
http://gforgeek.blogspot.com/2005/04/simple-packet-sniffer-using-java.html
BTW, it sounds like it might take a lot of work to write a packet sniffer and I'm fairly sure that no one is just going to hand you over code to do this behavior.
All 11 Replies
hooknc
1
Posting Whiz in Training
aj.wh.ca
0
Junior Poster in Training
invokers
0
Newbie Poster
invokers
0
Newbie Poster
hooknc
1
Posting Whiz in Training
invokers
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
invokers
0
Newbie Poster
hooknc
1
Posting Whiz in Training
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
invokers
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.