Hi
I am using NDK send function to send big (130k) buffers over TCP/IP protocol
I use socket in blocking mode.
Can I be sure that the send function will be blocking until all the 130 k will be sent , or I need to check the number of sent bytes and implement the send in loop?
I mean, can I use the send in this way:
ret = send(hSocket, Buffer, Sze, 0);
Or , I must to implement this loop:
int ret;
while(Size > 0)
{
ret = send(stcpResults, Buffer, Size, 0);
if (ret < 0)
{
break;
}
Size = Size - ret;
Buffer = Buffer + ret;
}