Hello,
Today, when looking for the TCPLogNKE sample code, I noticed the warning:
Important This document is part of the Legacy section of the ADC Developer Library. This information should not be used for new development. Current information on this Developer Library topic can be found here: Hardware & Drivers > Networking.
I did check the address, but it is just the index of the Mac Developer Library… and I drowned in the mass of informations, unable to find what I was looking for, which is:
The TCPLogNKE sample code is dating back from 10.4. Does anyone know which programming practice is outdated and what should be adopted in replacement ?
Best regards, Jean
PS: The TCPLogNKE sample code is pretty straightforward. It uses:
- OSMalloc for memory management - mutex locks (lck_mtx_lock) for data protection - Registers a socket filter (sflt_filter) through sflt_register. - Packet swallowing and packet re-injection (sock_inject_data_ …) - Socket controls (SYSPROTO_CONTROL) for communicating with user space apps - Timer-like callbacks using bsd_timeout. |