Instance Method

handleInboundData(from:readBytesStartOffset:readBytes:)

Make a filtering decision about a chunk of inbound data.

Declaration

func handleInboundData(from flow: NEFilterFlow, readBytesStartOffset offset: Int, readBytes: Data) -> NEFilterDataVerdict

Parameters

flow

An NEFilterFlow object containing information about the flow.

offset

An unsigned integer containing the offset of the data stored in readBytes. This offset is measured from the beginning of the flow’s inbound data.

readBytes

An NSData object containing the data to be filtered.

Return Value

A NEFilterDataVerdict object indicating how the system should handle the chunk of data and all subsequent inbound data for the flow.

Discussion

NEFilterDataProvider subclasses must override this method.

See Also

Filtering Network Content

func handleNewFlow(NEFilterFlow) -> NEFilterNewFlowVerdict

Make a filtering decision for a newly-created flow of network content.

func handleInboundDataComplete(for: NEFilterFlow) -> NEFilterDataVerdict

Make a filtering decision after seeing all of the inbound data for a flow.

func handleOutboundDataComplete(for: NEFilterFlow) -> NEFilterDataVerdict

Make a filtering decision after seeing all of the outbound data for a flow.