## Uses of Class
com.h3c.util.ip.PortNumber

- Packages that use PortNumber
  Package | Description
  --- | ---
  com.h3c.of.ctl | Public API for the OpenFlow Controller.
  com.h3c.of.json | JSON factory and codecs for Openflow structures.
  com.h3c.of.lib.dt | A set of classes representing data values used in the OpenFlow protocol.
  com.h3c.of.lib.instr | Representations of OpenFlow Protocol Instructions and Actions.
  com.h3c.of.lib.match | Representations of OpenFlow Protocol Match Structures.
  com.h3c.of.lib.msg | Representations of OpenFlow Protocol Messages.
  com.h3c.util.ip |
  com.h3c.util.pkt |

- - ### Uses of PortNumber in com.h3c.of.ctl

    Methods in com.h3c.of.ctl that return PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `PortNumber` | ConnectionDetails.`remotePort()` Returns the TCP port (on this connection).

  - ### Uses of PortNumber in com.h3c.of.json

    Methods in com.h3c.of.json that return PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `static PortNumber` | CodecUtils.`decodePort(com.fasterxml.jackson.databind.JsonNode value)` Converts JsonNode into PortNumber object.

    Methods in com.h3c.of.json with parameters of type PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `static int` | CodecUtils.`encodePort(PortNumber port)` Converts PortNumber into int that can be used as a JSON value.

  - ### Uses of PortNumber in com.h3c.of.lib.dt

    Methods in com.h3c.of.lib.dt that return PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `PortNumber` | DataPathInfo.`remotePort()` Returns the TCP port for the switch's "main" connection.
    `PortNumber` | DataPathInfoAdapter.`remotePort()`

  - ### Uses of PortNumber in com.h3c.of.lib.instr

    Methods in com.h3c.of.lib.instr with parameters of type PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `static Action` | ActionFactory.`createActionSetField(ProtocolVersion pv, OxmBasicFieldType ft, PortNumber port)` Creates a set-field action for a port-number-based match field, using the given protocol version.

  - ### Uses of PortNumber in com.h3c.of.lib.match

    Methods in com.h3c.of.lib.match that return PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `PortNumber` | MFieldBasicPort.`getPort()` Returns the port number.

    Methods in com.h3c.of.lib.match with parameters of type PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `static MFieldBasic` | FieldFactory.`createBasicField(ProtocolVersion pv, OxmBasicFieldType ft, PortNumber port)` Creates a basic match field for a port-number-based match field.

  - ### Uses of PortNumber in com.h3c.of.lib.msg

    Methods in com.h3c.of.lib.msg that return PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `static PortNumber` | Port.`equivalentSpecial(BigPortNumber bpn)` Returns the 1.0 "special" port number (u16) equivalent to the given 1.3 "special" big port number (u32).
    `static PortNumber` | Port.`getPortNumber(String portNumber)` Returns the port, given its string representation, which can include a logical name or the numeric representation of the port.

    Methods in com.h3c.of.lib.msg with parameters of type PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `static BigPortNumber` | Port.`equivalentSpecial(PortNumber pn)` Returns the 1.3 "special" big port number (u32) equivalent to the given 1.0 "special" port number (u16).
    `static String` | Port.`portNumberToString(PortNumber port)` Returns a string representation of the port number.

  - ### Uses of PortNumber in com.h3c.util.ip

    Methods in com.h3c.util.ip that return PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `static PortNumber` | PortNumber.`valueOf(byte[] bytes)` Returns an object that represents the port number defined by the specified byte array.
    `static PortNumber` | PortNumber.`valueOf(int port)` Returns an object that represents the port number defined by the specified integer.
    `static PortNumber` | PortNumber.`valueOf(String portStr)` Returns an object that represents the port number defined by the specified string.

    Methods in com.h3c.util.ip with parameters of type PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `int` | PortNumber.`compareTo(PortNumber o)` Implements the Comparable interface, to return port numbers in natural order.

  - ### Uses of PortNumber in com.h3c.util.pkt

    Methods in com.h3c.util.pkt that return PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `PortNumber` | PacketReader.`readPortNumber()` Reads a (u16) port number from the buffer.

    Methods in com.h3c.util.pkt with parameters of type PortNumber
    Modifier and Type | Method and Description
    --- | ---
    `void` | PacketWriter.`write(PortNumber pn)` Writes a (u16) port number to the buffer.

Copyright © 2014. All Rights Reserved.