2 ms·
Apple has a relatively new (I think introduced in 2018) "Network.framework" Swift API [1] for working with raw sockets. Maybe this post is dealing with the lay
by ks2048 2y ago
Apple has a relatively new (I think introduced in 2018) "Network.framework" Swift API [1] for working with raw sockets.
Maybe this post is dealing with the layer below - I'm out of my comfort zone with networking - but I recently built a custom protocol using Network and it's working well for me so far.
[1] https://developer.apple.com/documentation/network https://developer.apple.com/documentation/network
- kuhsaft 2y agoICMP is lower-level than what Network.framework provides. CFSocket would be the Swift/Obj-C API. https://developer.apple.com/documentation/corefoundation/cfsocket-rg7 https://developer.apple.com/documentation/corefoundation/cfs...
- mzs 2y agoThere's no NWProtocolRAW class so no: https://developer.apple.com/documentation/network/building-a-custom-peer-to-peer-protocol https://developer.apple.com/documentation/network/building-a...