Class UdpEndpoint

java.lang.Object
com.frostwire.jlibtorrent.UdpEndpoint
All Implemented Interfaces:
Cloneable

public final class UdpEndpoint extends Object implements Cloneable
  • Constructor Details

    • UdpEndpoint

      public UdpEndpoint(udp_endpoint endp)
    • UdpEndpoint

      public UdpEndpoint()
    • UdpEndpoint

      public UdpEndpoint(Address address, int port)
    • UdpEndpoint

      public UdpEndpoint(String ip, int port)
  • Method Details

    • swig

      public udp_endpoint swig()
    • address

      public Address address()
    • port

      public int port()
      Get the port associated with the endpoint. The port number is always in the host's byte order.
      Returns:
      the port
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public UdpEndpoint clone()
      Overrides:
      clone in class Object