Exemple #1
0
  /**
   * Get the port number this push packet tells the firewalled computer to push open a connection
   * to. This is the port number of the computer that wants the file and sent this packet.
   *
   * @return The downloading computer's port number
   */
  public int getPort() {

    // Read the port number from the 2 bytes after the IP address
    return ByteOrder.ushort2int(ByteOrder.leb2short(payload, 24));
  }