Package org.jnetpcap.packet

Examples of org.jnetpcap.packet.JMemoryPacket.order()


   * Test1.
   */
  public void test1() {
   
    JMemoryPacket packet = new JMemoryPacket(64);
    packet.order(ByteOrder.BIG_ENDIAN);
    packet.setUShort(0 + 12, 0x800);
    packet.setUByte(14 + 0, 0x45);
    System.out.println(packet.toHexdump());
    packet.setUByte(14 + 9, 0x11); //UDP
    System.out.println(packet.toHexdump());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.