Class NWFramer

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public final class NWFramer
extends NWObject
implements NSObjectProtocol
  • Constructor Details

    • NWFramer

      public NWFramer()
  • Method Details

    • createMessage

      public NWFramerMessage 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.
    • optionsCopyObjectValue

      public static NSObject optionsCopyObjectValue​(NWProtocolOptions options, BytePtr key)
      Since:
      Available in iOS 15.4 and later.
    • setInputHandler

      public void setInputHandler​(Block1<NWFramer,​Long> input_handler)
      Since:
      Available in iOS 13.0 and later.
    • setOutputHandler

      public void setOutputHandler​(VoidBlock4<NWFramer,​NWFramerMessage,​Long,​Boolean> output_handler)
      Since:
      Available in iOS 13.0 and later.
    • setWakeupHandler

      public void setWakeupHandler​(VoidBlock1<NWFramer> wakeup_handler)
      Since:
      Available in iOS 13.0 and later.
    • setStopHandler

      public void setStopHandler​(Block1<NWFramer,​Boolean> stop_handler)
      Since:
      Available in iOS 13.0 and later.
    • setCleanupHandler

      public void setCleanupHandler​(VoidBlock1<NWFramer> cleanup_handler)
      Since:
      Available in iOS 13.0 and later.
    • markReady

      public void markReady()
      Since:
      Available in iOS 13.0 and later.
    • prependApplicationProtocol

      public boolean prependApplicationProtocol​(NWProtocolOptions protocol_options)
      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

      public boolean deliverInputNoCopy​(long input_length, NWFramerMessage message, boolean is_complete)
      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

      public void writeOutput​(BytePtr output_buffer, long output_length)
      Since:
      Available in iOS 13.0 and later.
    • writeOutputData

      public void writeOutputData​(DispatchData output_data)
      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

      public void async​(Runnable async_block)
      Since:
      Available in iOS 13.0 and later.
    • copyRemoteEndpoint

      public NWEndpoint copyRemoteEndpoint()
      Since:
      Available in iOS 13.0 and later.
    • copyLocalEndpoint

      public NWEndpoint copyLocalEndpoint()
      Since:
      Available in iOS 13.0 and later.
    • copyParameters

      public NWParameters copyParameters()
      Since:
      Available in iOS 13.0 and later.
    • copyOptions

      public NWProtocolOptions copyOptions()
      Since:
      Available in iOS 15.4 and later.