Hello,
The "so" parameter in the TCP zero-copy callback is a "pointer to an internal socket object" according to the documentation. Is it possible to associate this with the socket the data was received on? The "so" parameter does not appear to be associated with the socket handle returned from qapi_accept.
Thanks,
Ryan
qapi_accept
*/qapi_acc
Yes, we associate the socket handle obtained from the TCP zero-copy callback to qapi_accept.
However, kindly note the qapi_accept will return a new socket descriptor with same propperties od "so" parameter.
Please refer to @target\quartz\demo\QCLI_demo\src\net\Bench_tcp.c for more detailed implementation.