Class NWTCPConnection
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.networkextension.NWTCPConnection
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NWTCPConnection extends NSObject
- Since:
- Available in iOS 9.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NWTCPConnection.NWTCPConnectionPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NWTCPConnection()
protected
NWTCPConnection(NSObject.Handle h, long handle)
protected
NWTCPConnection(NSObject.SkipInit skipInit)
NWTCPConnection(NWTCPConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
NWPath
getConnectedPath()
NWEndpoint
getEndpoint()
NSError
getError()
NWEndpoint
getLocalAddress()
NWEndpoint
getRemoteAddress()
NWTCPConnectionState
getState()
NSData
getTxtRecord()
boolean
hasBetterPath()
protected long
init(NWTCPConnection connection)
boolean
isViable()
void
read(long minimum, long maximum, org.robovm.objc.block.VoidBlock2<NSData,NSError> completion)
void
read(long length, org.robovm.objc.block.VoidBlock2<NSData,NSError> completion)
void
write(NSData data, org.robovm.objc.block.VoidBlock1<NSError> completion)
void
writeClose()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NWTCPConnection
public NWTCPConnection()
-
NWTCPConnection
protected NWTCPConnection(NSObject.Handle h, long handle)
-
NWTCPConnection
protected NWTCPConnection(NSObject.SkipInit skipInit)
-
NWTCPConnection
public NWTCPConnection(NWTCPConnection connection)
- Since:
- Available in iOS 9.0 and later.
-
-
Method Detail
-
getState
public NWTCPConnectionState getState()
- Since:
- Available in iOS 9.0 and later.
-
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.
-
-