Class NWTCPConnection

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class NWTCPConnection
    extends NSObject
    Since:
    Available in iOS 9.0 and later.
    • Constructor Detail

      • NWTCPConnection

        public NWTCPConnection()
      • NWTCPConnection

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

        public NWTCPConnection​(NWTCPConnection connection)
        Since:
        Available in iOS 9.0 and later.
    • Method Detail

      • isViable

        public boolean isViable()
        Since:
        Available in iOS 9.0 and later.
      • hasBetterPath

        public boolean hasBetterPath()
        Since:
        Available in iOS 9.0 and later.
      • getEndpoint

        public NWEndpoint getEndpoint()
        Since:
        Available in iOS 9.0 and later.
      • getConnectedPath

        public NWPath getConnectedPath()
        Since:
        Available in iOS 9.0 and later.
      • getLocalAddress

        public NWEndpoint getLocalAddress()
        Since:
        Available in iOS 9.0 and later.
      • getRemoteAddress

        public NWEndpoint getRemoteAddress()
        Since:
        Available in iOS 9.0 and later.
      • getTxtRecord

        public NSData getTxtRecord()
        Since:
        Available in iOS 9.0 and later.
      • getError

        public NSError getError()
        Since:
        Available in iOS 9.0 and later.
      • init

        protected long init​(NWTCPConnection connection)
        Since:
        Available in iOS 9.0 and later.
      • cancel

        public void cancel()
        Since:
        Available in iOS 9.0 and later.
      • read

        public void read​(long length,
                         org.robovm.objc.block.VoidBlock2<NSData,​NSError> completion)
        Since:
        Available in iOS 9.0 and later.
      • read

        public void read​(long minimum,
                         long maximum,
                         org.robovm.objc.block.VoidBlock2<NSData,​NSError> completion)
        Since:
        Available in iOS 9.0 and later.
      • write

        public void write​(NSData data,
                          org.robovm.objc.block.VoidBlock1<NSError> completion)
        Since:
        Available in iOS 9.0 and later.
      • writeClose

        public void writeClose()
        Since:
        Available in iOS 9.0 and later.