Instance Method

handleOutboundDataFromFlow:readBytesStartOffset:readBytes:

Make a filtering decision about a chunk of outbound data.

Declaration

- (NEFilterDataVerdict *)handleOutboundDataFromFlow:(NEFilterFlow *)flow readBytesStartOffset:(NSUInteger)offset readBytes:(NSData *)readBytes;

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 outbound data.

readBytes

An NSData object containing the data to be filtered.

Return Value

An NEFilterDataVerdict indicating how the system should handle the chunk of data and all subsequent outbound data for the flow.

Discussion

NEFilterDataProvider subclasses must override this method.

See Also

Filtering Network Content

- handleNewFlow:

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

- handleInboundDataFromFlow:readBytesStartOffset:readBytes:

Make a filtering decision about a chunk of inbound data.

- handleInboundDataCompleteForFlow:

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

- handleOutboundDataCompleteForFlow:

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