Beispiel #1
0
 public void receivePacket(Packet packet) {
   try {
     System.out.println(new String(packet.data, "gb2312"));
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
Beispiel #2
0
 public Jpcap() {
   try {
     this.getDevice();
   } catch (Exception e) {
     e.printStackTrace();
   }
   // getDevice();
 }