Class NSNetService

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

@Deprecated
public class NSNetService
extends NSObject
Deprecated.
Use nw_connection_t or nw_listener_t in Network framework instead
  • Constructor Details

    • NSNetService

      public NSNetService()
      Deprecated.
    • NSNetService

      protected NSNetService​(NSObject.Handle h, long handle)
      Deprecated.
    • NSNetService

      protected NSNetService​(NSObject.SkipInit skipInit)
      Deprecated.
    • NSNetService

      public NSNetService​(String domain, String type, String name, int port)
      Deprecated.
    • NSNetService

      public NSNetService​(String domain, String type, String name)
      Deprecated.
  • Method Details

    • getDelegate

      public NSNetServiceDelegate getDelegate()
      Deprecated.
    • setDelegate

      public void setDelegate​(NSNetServiceDelegate v)
      Deprecated.
    • includesPeerToPeer

      public boolean includesPeerToPeer()
      Deprecated.
    • setIncludesPeerToPeer

      public void setIncludesPeerToPeer​(boolean v)
      Deprecated.
    • getName

      public String getName()
      Deprecated.
    • getType

      public String getType()
      Deprecated.
    • getDomain

      public String getDomain()
      Deprecated.
    • getHostName

      public String getHostName()
      Deprecated.
    • getAddresses

      public NSArray<NSData> getAddresses()
      Deprecated.
    • getPort

      public long getPort()
      Deprecated.
    • getInputStream

      public NSInputStream getInputStream()
      Deprecated.
    • getOutputStream

      public NSOutputStream getOutputStream()
      Deprecated.
    • scheduleInRunLoop

      public void scheduleInRunLoop​(NSRunLoop aRunLoop, NSRunLoopMode mode)
      Deprecated.
    • removeFromRunLoop

      public void removeFromRunLoop​(NSRunLoop aRunLoop, NSRunLoopMode mode)
      Deprecated.
    • init

      protected long init​(String domain, String type, String name, int port)
      Deprecated.
    • init

      protected long init​(String domain, String type, String name)
      Deprecated.
    • scheduleInRunLoop

      public void scheduleInRunLoop​(NSRunLoop aRunLoop, String mode)
      Deprecated.
    • removeFromRunLoop

      public void removeFromRunLoop​(NSRunLoop aRunLoop, String mode)
      Deprecated.
    • publish

      public void publish()
      Deprecated.
    • publish

      public void publish​(NSNetServiceOptions options)
      Deprecated.
    • stop

      public void stop()
      Deprecated.
    • resolve

      public void resolve​(double timeout)
      Deprecated.
    • getStreams

      protected boolean getStreams​(NSInputStream.NSInputStreamPtr inputStream, NSOutputStream.NSOutputStreamPtr outputStream)
      Deprecated.
    • setTXTRecordData

      public boolean setTXTRecordData​(NSData recordData)
      Deprecated.
    • getTXTRecordData

      public NSData getTXTRecordData()
      Deprecated.
    • startMonitoring

      public void startMonitoring()
      Deprecated.
    • stopMonitoring

      public void stopMonitoring()
      Deprecated.
    • getDictionaryFromTXTRecordData

      public static NSDictionary<NSString,​NSData> getDictionaryFromTXTRecordData​(NSData txtData)
      Deprecated.
    • getDataFromTXTRecordDictionary

      public static NSData getDataFromTXTRecordDictionary​(NSDictionary<NSString,​NSData> txtDictionary)
      Deprecated.