handleOutboundData() not getting triggered ?

For macos

In sample code for content filter from wwdc2019 i have override a method called handleInboundData().

As far i think it must get called automatically ?

But it is not getting called !!!

What's wrong ?

Answered by DTS Engineer in 386846022

To receive data via this method you must return a verdict that indicates that you want to see inbound data. Typically this means return a verdict from

-handleNewFlow:
that you created using
+filterDataVerdictWithFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:
, passing true to the
filterInbound
parameter and the number of bytes you want to see to the
peekInboundBytes
parameter.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

To receive data via this method you must return a verdict that indicates that you want to see inbound data. Typically this means return a verdict from

-handleNewFlow:
that you created using
+filterDataVerdictWithFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:
, passing true to the
filterInbound
parameter and the number of bytes you want to see to the
peekInboundBytes
parameter.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
handleOutboundData() not getting triggered ?
 
 
Q