开发者

OSX Equivalent of Winsock LSP

开发者 https://www.devze.com 2022-12-24 09:04 出处:网络
On Windows, it\'s possible to program an LSP service on top of Winsock which provides the ability to do a lot开发者_如何学Python of manipulation/etc. with networked applications.For instance, some ant

On Windows, it's possible to program an LSP service on top of Winsock which provides the ability to do a lot开发者_如何学Python of manipulation/etc. with networked applications. For instance, some anti virus applications register an LSP and analyse network traffic that way. Is there a friendly way to accomplish the same sort of thing on OSX?


IPFW (same/similar to IPFW in other BSDs) is the Mac OS X firewall: http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man8/ipfw.8.html

Depending on what you're after you may want to look into using divert: http://blog.loudhush.ro/2008/06/using-divert-sockets-to-log-http.html

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man4/divert.4.html

0

精彩评论

暂无评论...
验证码 换一张
取 消