Class CFNetService

All Implemented Interfaces:
AutoCloseable

public class CFNetService
extends CFType
  • Constructor Details

    • CFNetService

      protected CFNetService()
  • Method Details

    • create

      public static CFNetService create​(String domain, String serviceType, String name, int port)
      Since:
      Available in iOS 2.0 and later.
    • createCopy

      public static CFNetService createCopy​(CFNetService service)
      Since:
      Available in iOS 2.0 and later.
    • parseTXTData

      public static NSDictionary<NSString,​NSData> parseTXTData​(NSData txtRecord)
      Since:
      Available in iOS 2.0 and later.
    • createTXTData

      public static NSData createTXTData​(NSDictionary<NSString,​NSData> keyValuePairs)
      Since:
      Available in iOS 2.0 and later.
    • setCallback

      public void setCallback​(CFNetService.ClientCallback callback)
      Since:
      Available in iOS 2.0 and later.
    • createSocketReadStream

      public NSInputStream createSocketReadStream()
      Since:
      Available in iOS 2.0 and later.
    • createSocketWriteStream

      public NSOutputStream createSocketWriteStream()
      Since:
      Available in iOS 2.0 and later.
    • scheduleInRunLoop

      public void scheduleInRunLoop​(CFRunLoop runLoop, CFRunLoopMode runLoopMode)
      Since:
      Available in iOS 2.0 and later.
    • removeFromRunLoop

      public void removeFromRunLoop​(CFRunLoop runLoop, CFRunLoopMode runLoopMode)
      Since:
      Available in iOS 2.0 and later.
    • getClassTypeID

      @Deprecated public static long getClassTypeID()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • create

      @Deprecated public static CFNetService create​(CFAllocator alloc, String domain, String serviceType, String name, int port)
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • createCopy

      @Deprecated public static CFNetService createCopy​(CFAllocator alloc, CFNetService service)
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • getDomain

      @Deprecated public String getDomain()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • getType

      @Deprecated public String getType()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • getName

      @Deprecated public String getName()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • register

      @Deprecated public boolean register​(CFNetServiceOptions options) throws CFStreamErrorException
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
      Throws:
      CFStreamErrorException
    • resolve

      @Deprecated public boolean resolve​(double timeout) throws CFStreamErrorException
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
      Throws:
      CFStreamErrorException
    • cancel

      @Deprecated public void cancel()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • getTargetHost

      @Deprecated public String getTargetHost()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • getPortNumber

      @Deprecated public int getPortNumber()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • getAddressing

      @Deprecated public NSArray<NSData> getAddressing()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • getTXTData

      @Deprecated public NSData getTXTData()
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • setTXTData

      @Deprecated public boolean setTXTData​(NSData txtRecord)
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • parseTXTData

      @Deprecated protected static NSDictionary<NSString,​NSData> parseTXTData​(CFAllocator alloc, NSData txtRecord)
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • createTXTData

      @Deprecated protected static NSData createTXTData​(CFAllocator alloc, NSDictionary<NSString,​NSData> keyValuePairs)
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • scheduleInRunLoop

      @Deprecated public void scheduleInRunLoop​(CFRunLoop runLoop, String runLoopMode)
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead
    • unscheduleFromRunLoop

      @Deprecated public void unscheduleFromRunLoop​(CFRunLoop runLoop, String runLoopMode)
      Deprecated.
      Use nw_browser_t or nw_listener_t in Network framework instead