文件名称:DispalyNetPacket
介绍说明--下载内容均来自于网络,请自行研究使用
抓包前,首先要编写实现了PacketReceiver接口的类,即数据包处理器,由与抓包时,对应某个网络接口的JpcapCaptor对象会阻塞,所以我们将每个网卡上得到的对应的用用于网络抓包,输入数据包类型。JpcapCaptor对象放到一个独立线程中运行;TestPacketReceiver是个数据包解析器,本例中我们只是简单打印出收到的数据包类型及关键参数。-Ethereal, we should first write a class implements the PacketReceiver interfaces, or data packet processor, and get caught by the time corresponding to a network interface JpcapCaptor object will block, so we will get each card to use with the corresponding the network packet capture, the input data packet type. JpcapCaptor objects in a separate thread to run TestPacketReceiver a packet parser, in this case, we simply print out the received data packet types and key parameters.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DispalyNetPacket.java