Open hcl416029105 opened 6 years ago
Network监控里面用到的NSURLConnection,NSURLSession,CFNetwork,最底层还是使用的socket,我们要同时监控NSURLConnection,NSURLSession,CFNetwork。那为什么不直接监控iOS里面的socket呢?
@hcl416029105 BSD Socket 函数在 iOS 真机上实际测试下来是没有办法 hook 成功的,参考这个 Issue
@liman123 确实不能 hook socket
那为啥close和send等bsd函数可以被hook成功?
Network监控里面用到的NSURLConnection,NSURLSession,CFNetwork,最底层还是使用的socket,我们要同时监控NSURLConnection,NSURLSession,CFNetwork。那为什么不直接监控iOS里面的socket呢?