Package org.robovm.apple.network
Class NWConnection
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.network.NWObject
org.robovm.apple.network.NWConnection
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public final class NWConnection extends NWObject implements NSObjectProtocol
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNWConnection.NWConnectionPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Constructor Description NWConnection(NWEndpoint endpoint, NWParameters parameters) -
Method Summary
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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
NWConnection
- Since:
- Available in iOS 12.0 and later.
-
-
Method Details
-
copyDescription
-
SEND_IDEMPOTENT_CONTENT
- Since:
- Available in iOS 12.0 and later.
-
copyEndpoint
- Since:
- Available in iOS 12.0 and later.
-
copyParameters
- Since:
- Available in iOS 12.0 and later.
-
setStateChangedHandler
- Since:
- Available in iOS 12.0 and later.
-
setViabilityChangedHandler
- Since:
- Available in iOS 12.0 and later.
-
setBetterPathAvailableHandler
- Since:
- Available in iOS 12.0 and later.
-
setPathChangedHandler
- Since:
- Available in iOS 12.0 and later.
-
setQueue
- Since:
- Available in iOS 12.0 and later.
-
start
public void start()- Since:
- Available in iOS 12.0 and later.
-
restart
public void restart()- Since:
- Available in iOS 12.0 and later.
-
cancel
public void cancel()- Since:
- Available in iOS 12.0 and later.
-
forceCancel
public void forceCancel()- Since:
- Available in iOS 12.0 and later.
-
cancelCurrentEndpoint
public void cancelCurrentEndpoint()- Since:
- Available in iOS 12.0 and later.
-
receive
public void receive(int minimum_incomplete_length, int maximum_length, VoidBlock4<DispatchData,NWContentContext,Boolean,NWError> completion)- Since:
- Available in iOS 12.0 and later.
-
receiveMessage
public void receiveMessage(VoidBlock4<DispatchData,NWContentContext,Boolean,NWError> completion)- Since:
- Available in iOS 12.0 and later.
-
send
public void send(DispatchData content, NWContentContext context, boolean is_complete, VoidBlock1<NWError> completion)- Since:
- Available in iOS 12.0 and later.
-
batch
- Since:
- Available in iOS 12.0 and later.
-
copyDescription0
protected long copyDescription0()- Since:
- Available in iOS 12.0 and later.
-
copyCurrentPath
- Since:
- Available in iOS 12.0 and later.
-
copyProtocolMetadata
- Since:
- Available in iOS 12.0 and later.
-
getMaximumDatagramSize
public int getMaximumDatagramSize()- Since:
- Available in iOS 12.0 and later.
-
groupCreate
public static NWConnectionGroup groupCreate(NWGroupDescriptor group_descriptor, NWParameters parameters)- Since:
- Available in iOS 14.0 and later.
-
groupCopyDescriptor
- Since:
- Available in iOS 14.0 and later.
-
groupCopyParameters
- Since:
- Available in iOS 14.0 and later.
-
groupSetQueue
- Since:
- Available in iOS 14.0 and later.
-
groupSetStateChangedHandler
public static void groupSetStateChangedHandler(NWConnectionGroup group, VoidBlock2<NWConnectionGroupState,NWError> state_changed_handler)- Since:
- Available in iOS 14.0 and later.
-
groupSetReceiveHandler
public static void groupSetReceiveHandler(NWConnectionGroup group, int maximum_message_size, boolean reject_oversized_messages, VoidBlock3<DispatchData,NWContentContext,Boolean> receive_handler)- Since:
- Available in iOS 14.0 and later.
-
groupStart
- Since:
- Available in iOS 14.0 and later.
-
groupCancel
- Since:
- Available in iOS 14.0 and later.
-
groupCopyRemoteEndpointForMessage
public static NWEndpoint groupCopyRemoteEndpointForMessage(NWConnectionGroup group, NWContentContext context)- Since:
- Available in iOS 14.0 and later.
-
groupCopyLocalEndpointForMessage
public static NWEndpoint groupCopyLocalEndpointForMessage(NWConnectionGroup group, NWContentContext context)- Since:
- Available in iOS 14.0 and later.
-
groupCopyPathForMessage
- Since:
- Available in iOS 14.0 and later.
-
groupCopyProtocolMetadataForMessage
public static NWProtocolMetadata groupCopyProtocolMetadataForMessage(NWConnectionGroup group, NWContentContext context, NWProtocolDefinition definition)- Since:
- Available in iOS 15.0 and later.
-
groupExtractConnectionForMessage
public static NWConnection groupExtractConnectionForMessage(NWConnectionGroup group, NWContentContext context)- Since:
- Available in iOS 14.0 and later.
-
groupReply
public static void groupReply(NWConnectionGroup group, NWContentContext inbound_message, NWContentContext outbound_message, DispatchData content)- Since:
- Available in iOS 14.0 and later.
-
groupExtractConnection
public static NWConnection groupExtractConnection(NWConnectionGroup group, NWEndpoint endpoint, NWProtocolOptions protocol_options)- Since:
- Available in iOS 15.0 and later.
-
groupReinsertExtractedConnection
public static boolean groupReinsertExtractedConnection(NWConnectionGroup group, NWConnection connection)- Since:
- Available in iOS 15.0 and later.
-
groupSendMessage
public static void groupSendMessage(NWConnectionGroup group, DispatchData content, NWEndpoint endpoint, NWContentContext context, VoidBlock1<NWError> completion)- Since:
- Available in iOS 14.0 and later.
-
groupSetNewConnectionHandler
public static void groupSetNewConnectionHandler(NWConnectionGroup group, VoidBlock1<NWConnection> new_connection_handler)- Since:
- Available in iOS 15.0 and later.
-
groupCopyProtocolMetadata
public static NWProtocolMetadata groupCopyProtocolMetadata(NWConnectionGroup group, NWProtocolDefinition definition)- Since:
- Available in iOS 15.0 and later.
-
accessEstablishmentReport
public void accessEstablishmentReport(DispatchQueue queue, VoidBlock1<NWEstablishmentReport> access_block)- Since:
- Available in iOS 13.0 and later.
-
createNewDataTransferReport
- Since:
- Available in iOS 13.0 and later.
-