Contents

filterDataVerdict(withFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:)

Create a verdict that indicates to the system that the filter needs to make a decision about a new flow after seeing a portion of the flow’s data.

Declaration

class func filterDataVerdict(withFilterInbound filterInbound: Bool, peekInboundBytes: Int, filterOutbound: Bool, peekOutboundBytes: Int) -> NEFilterNewFlowVerdict

Parameters

  • filterInbound:

    A Boolean indicating whether or not the filter needs to see inbound data for the flow.

  • peekInboundBytes:

    The number of inbound bytes that the filter needs to see in the subsequent call to -[Nefilterdataprovider handleInboundDataFromFlow:readBytesStartOffset:readBytes:].

  • filterOutbound:

    A Boolean indicating whether or not the filter needs to see outbound data for the flow.

  • peekOutboundBytes:

    The number of outbound bytes that the filter needs to see in the subsequent call to -[Nefilterdataprovider handleOutboundDataFromFlow:readBytesStartOffset:readBytes:].

Return Value

A NEFilterNewFlowVerdict object.

See Also

Creating new flow verdicts