Class NWEndpoint

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public final class NWEndpoint
extends NWObject
implements NSObjectProtocol
  • Constructor Details

    • NWEndpoint

      public NWEndpoint​(String hostname, String port)
      Since:
      Available in iOS 12.0 and later.
    • NWEndpoint

      public NWEndpoint​(String name, String type, String domain)
      Since:
      Available in iOS 12.0 and later.
    • NWEndpoint

      public NWEndpoint​(String url)
      Since:
      Available in iOS 13.0 and later.
  • Method Details

    • getType

      public NWEndpointType getType()
      Since:
      Available in iOS 12.0 and later.
    • getHostname

      public String getHostname()
      Since:
      Available in iOS 12.0 and later.
    • copyPortString

      public String copyPortString()
      Since:
      Available in iOS 12.0 and later.
    • getPort

      public short getPort()
      Since:
      Available in iOS 12.0 and later.
    • copyAddressString

      public String copyAddressString()
      Since:
      Available in iOS 12.0 and later.
    • getBonjourServiceName

      public String getBonjourServiceName()
      Since:
      Available in iOS 12.0 and later.
    • getBonjourServiceType

      public String getBonjourServiceType()
      Since:
      Available in iOS 12.0 and later.
    • getBonjourServiceDomain

      public String getBonjourServiceDomain()
      Since:
      Available in iOS 12.0 and later.
    • getUrl

      public String getUrl()
      Since:
      Available in iOS 13.0 and later.