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