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

- Packages that use TcpUdpPort
  Package | Description
  --- | ---
  com.h3c.util.ip |
  com.h3c.util.pkt |

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

    Fields in com.h3c.util.ip declared as TcpUdpPort
    Modifier and Type | Field and Description
    --- | ---
    `static TcpUdpPort` | TcpUdpPort.`UNDETERMINED_TCP` A value representing an undetermined TCP port.
    `static TcpUdpPort` | TcpUdpPort.`UNDETERMINED_UDP` A value representing an undetermined UDP port.

    Methods in com.h3c.util.ip that return TcpUdpPort
    Modifier and Type | Method and Description
    --- | ---
    `TcpUdpPort` | TcpUdpPortPair.`getDestinationPort()` Returns the port of the destination.
    `TcpUdpPort` | TcpUdpPortPair.`getSourcePort()` Returns the port of the source.
    `static TcpUdpPort` | TcpUdpPort.`tcpPort(int portNumber)` Delegates to `valueOf(int,IpProtocol)`, specifying the protocol to be TCP.
    `static TcpUdpPort` | TcpUdpPort.`udpPort(int portNumber)` Delegates to `valueOf(int,IpProtocol)`, specifying the protocol to be UDP.
    `static TcpUdpPort` | TcpUdpPort.`valueOf(int portNumber, IpProtocol protocol)` Returns an object that represents the value of the tcp/udp port identified by the specified port number and protocol.
    `static TcpUdpPort` | TcpUdpPort.`valueOf(String value)` Returns an object that represents the value of the tcp/udp port identified by the specified string.

    Methods in com.h3c.util.ip with parameters of type TcpUdpPort
    Modifier and Type | Method and Description
    --- | ---
    `int` | TcpUdpPort.`compareTo(TcpUdpPort o)` Implements the Comparable interface, to return ports in a natural order.
    `static TcpUdpPortPair` | TcpUdpPortPair.`valueOf(IpAddress sourceIp, TcpUdpPort sourcePort, IpAddress destIp, TcpUdpPort destPort)` Returns a `TcpUdpPortPair` object that represents the source and destination ports specified by the given IP addresses and TCP/UDP ports.

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

    Methods in com.h3c.util.pkt that return TcpUdpPort
    Modifier and Type | Method and Description
    --- | ---
    `TcpUdpPort` | Udp.`dstPort()` Returns the destination port.
    `TcpUdpPort` | Tcp.`dstPort()` Returns the destination port.
    `TcpUdpPort` | Udp.`srcPort()` Returns the source port.
    `TcpUdpPort` | Tcp.`srcPort()` Returns the source port.

    Methods in com.h3c.util.pkt with parameters of type TcpUdpPort
    Modifier and Type | Method and Description
    --- | ---
    `Udp.Builder` | Udp.Builder.`dstPort(TcpUdpPort dstPort)` Sets the destination port.
    `Tcp.Builder` | Tcp.Builder.`dstPort(TcpUdpPort dstPort)` Sets the destination port.
    `Udp.Builder` | Udp.Builder.`srcPort(TcpUdpPort srcPort)` Sets the source port.
    `Tcp.Builder` | Tcp.Builder.`srcPort(TcpUdpPort srcPort)` Sets the source port.

Copyright © 2014. All Rights Reserved.