Dear e2e community!
I use NDK socet API for connection to a TCP/IP server. After connect(), I need to receive data from server.
Can I declare a callback function, which will be called after the data from TCP/IP server is received?
If yes, how can i do it?
I understand, I can call recv(SOCKET s, void *pbuf, int size, int flags); or recvfrom(SOCKET s, void *pbuf, int size, int flags, PSA pName, int *plen); with flags = MSG_WAITALL or MSG_DONTWAIT. But it will "hang" my task (with flags = MSG_WAITALL ) or I must periodically call recv with flags = MSG_DONTWAIT. Could You suggest any alternative method?
My platform:TMS320C6747EVM (OMAPL137EVM); CCS3.3; NDK2.0.0; DSP/BIOS 5.33.01;
Thank You in advance,
Vitalii