Package org.robovm.apple.network
Class NWFramer
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.NWFramer
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public final class NWFramer extends NWObject implements NSObjectProtocol
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNWFramer.NWFramerPtrNested 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 NWFramer() -
Method Summary
Modifier and Type Method Description voidasync(Runnable async_block)NWEndpointcopyLocalEndpoint()NWParameterscopyParameters()NWEndpointcopyRemoteEndpoint()static NWProtocolDefinitioncreateDefinition(String identifier, int flags, Block1<NWFramer,NWFramerStartResult> start_handler)NWFramerMessagecreateMessage()voiddeliverInput(BytePtr input_buffer, long input_length, NWFramerMessage message, boolean is_complete)booleandeliverInputNoCopy(long input_length, NWFramerMessage message, boolean is_complete)voidmarkFailedWithError(int error_code)voidmarkReady()booleanparseInput(long minimum_incomplete_length, long maximum_length, BytePtr temp_buffer, Block3<BytePtr,Long,Boolean,Long> parse)booleanparseOutput(long minimum_incomplete_length, long maximum_length, BytePtr temp_buffer, Block3<BytePtr,Long,Boolean,Long> parse)voidpassThroughInput()voidpassThroughOutput()booleanprependApplicationProtocol(NWProtocolOptions protocol_options)voidscheduleWakeup(long milliseconds)voidsetCleanupHandler(VoidBlock1<NWFramer> cleanup_handler)voidsetInputHandler(Block1<NWFramer,Long> input_handler)voidsetOutputHandler(VoidBlock4<NWFramer,NWFramerMessage,Long,Boolean> output_handler)voidsetStopHandler(Block1<NWFramer,Boolean> stop_handler)voidsetWakeupHandler(VoidBlock1<NWFramer> wakeup_handler)voidwriteOutput(BytePtr output_buffer, long output_length)voidwriteOutputData(DispatchData output_data)booleanwriteOutputNoCopy(long output_length)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
-
NWFramer
public NWFramer()
-
-
Method Details
-
createMessage
- Since:
- Available in iOS 13.0 and later.
-
createDefinition
public static NWProtocolDefinition createDefinition(String identifier, int flags, Block1<NWFramer,NWFramerStartResult> start_handler)- Since:
- Available in iOS 13.0 and later.
-
setInputHandler
- Since:
- Available in iOS 13.0 and later.
-
setOutputHandler
- Since:
- Available in iOS 13.0 and later.
-
setWakeupHandler
- Since:
- Available in iOS 13.0 and later.
-
setStopHandler
- Since:
- Available in iOS 13.0 and later.
-
setCleanupHandler
- Since:
- Available in iOS 13.0 and later.
-
markReady
public void markReady()- Since:
- Available in iOS 13.0 and later.
-
prependApplicationProtocol
- Since:
- Available in iOS 13.0 and later.
-
markFailedWithError
public void markFailedWithError(int error_code)- Since:
- Available in iOS 13.0 and later.
-
parseInput
public boolean parseInput(long minimum_incomplete_length, long maximum_length, BytePtr temp_buffer, Block3<BytePtr,Long,Boolean,Long> parse)- Since:
- Available in iOS 13.0 and later.
-
deliverInput
public void deliverInput(BytePtr input_buffer, long input_length, NWFramerMessage message, boolean is_complete)- Since:
- Available in iOS 13.0 and later.
-
deliverInputNoCopy
- Since:
- Available in iOS 13.0 and later.
-
passThroughInput
public void passThroughInput()- Since:
- Available in iOS 13.0 and later.
-
parseOutput
public boolean parseOutput(long minimum_incomplete_length, long maximum_length, BytePtr temp_buffer, Block3<BytePtr,Long,Boolean,Long> parse)- Since:
- Available in iOS 13.0 and later.
-
writeOutput
- Since:
- Available in iOS 13.0 and later.
-
writeOutputData
- Since:
- Available in iOS 13.0 and later.
-
writeOutputNoCopy
public boolean writeOutputNoCopy(long output_length)- Since:
- Available in iOS 13.0 and later.
-
passThroughOutput
public void passThroughOutput()- Since:
- Available in iOS 13.0 and later.
-
scheduleWakeup
public void scheduleWakeup(long milliseconds)- Since:
- Available in iOS 13.0 and later.
-
async
- Since:
- Available in iOS 13.0 and later.
-
copyRemoteEndpoint
- Since:
- Available in iOS 13.0 and later.
-
copyLocalEndpoint
- Since:
- Available in iOS 13.0 and later.
-
copyParameters
- Since:
- Available in iOS 13.0 and later.
-