When you find error in line import org.eclipse.jetty.server.Server;
it means eclipse doesn't contain jetty.jar.
Right click on project -> properties
on left pane -> java build path
right pane -> add external jar under libraries tab
link it to all the jar files of jetty folder.
can download jetty from : http://www.eclipse.org/jetty/downloads.php
now rebuild the project.
//Open an interface with openDevice(NetworkInterface intrface, int snaplen, boolean promics, int to_ms) JpcapCaptor captor=JpcapCaptor.openDevice(devices[index], 65535, false, 20); captor.setFilter("tcp && src port 6000", true); It'll filter all the TCP packets with source port number 6000. So, all we need to do is pass the parameters and use logical and, or operators.
Thanks for giving the steps.
ReplyDeleteThanks alot!!
ReplyDelete