Class CFHost

All Implemented Interfaces:
AutoCloseable

public class CFHost
extends CFType
  • Constructor Details

    • CFHost

      protected CFHost()
  • Method Details

    • create

      public static CFHost create​(String hostname)
      Since:
      Available in iOS 2.0 and later.
    • create

      public static CFHost create​(NSData addr)
      Since:
      Available in iOS 2.0 and later.
    • createCopy

      public static CFHost createCopy​(CFHost host)
      Since:
      Available in iOS 2.0 and later.
    • getAddressing

      public NSArray<NSData> getAddressing()
      Since:
      Available in iOS 2.0 and later.
    • getNames

      public List<String> getNames()
      Since:
      Available in iOS 2.0 and later.
    • getReachability

      public NSData getReachability()
      Since:
      Available in iOS 2.0 and later.
    • setCallback

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

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

      public NSOutputStream createSocketWriteStream​(int port)
      Since:
      Available in iOS 2.0 and later.
    • getClassTypeID

      @Deprecated public static long getClassTypeID()
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • create

      @Deprecated protected static CFHost create​(CFAllocator allocator, String hostname)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • create

      @Deprecated protected static CFHost create​(CFAllocator allocator, NSData addr)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • createCopy

      @Deprecated protected static CFHost createCopy​(CFAllocator alloc, CFHost host)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • startInfoResolution

      @Deprecated public boolean startInfoResolution​(CFHostInfoType info) throws CFStreamErrorException
      Deprecated.
      Use Network framework instead, see deprecation notice in
      Throws:
      CFStreamErrorException
    • getAddressing

      @Deprecated public NSArray<NSData> getAddressing​(BooleanPtr hasBeenResolved)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • getNames

      @Deprecated public List<String> getNames​(BooleanPtr hasBeenResolved)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • getReachability

      @Deprecated public NSData getReachability​(BooleanPtr hasBeenResolved)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • cancelInfoResolution

      @Deprecated public void cancelInfoResolution​(CFHostInfoType info)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • scheduleInRunLoop

      @Deprecated public void scheduleInRunLoop​(CFRunLoop runLoop, String runLoopMode)
      Deprecated.
      Use Network framework instead, see deprecation notice in
    • unscheduleFromRunLoop

      @Deprecated public void unscheduleFromRunLoop​(CFRunLoop runLoop, String runLoopMode)
      Deprecated.
      Use Network framework instead, see deprecation notice in