I
iceman
Hi all,
HOw can I flush the socket.
eg
how can I ensure that the send takes place immediately
if (send(socketDescriptor, buf, strlen(buf) + 1, 0) < 0) {
int km=socketDescriptor.flush();
cerr << "cannot send data ";
close(socketDescriptor);
exit(1);
}
HOw can I flush the socket.
eg
how can I ensure that the send takes place immediately
if (send(socketDescriptor, buf, strlen(buf) + 1, 0) < 0) {
int km=socketDescriptor.flush();
cerr << "cannot send data ";
close(socketDescriptor);
exit(1);
}