If you are able to build your cpp/c file but not able to run using codeblocks, then your system lacks the presence of MinGW. Download MinGW from sourceforge.net and after a restart you'll be able to run your c/cpp program.
//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.
Comments
Post a Comment