Hi Everyone,
I have a question. If I have a client and a server machine and on my
client machine I execute this code:

send (socketfd, &rHeader, 2 * sizeof(int)), 0);

and on my server machine I execute:

recv (socketfd, &buffer, 2 * sizeof*(int)), 0);

can I be sure that the full buffer will be sent and received when
these two are executed. If not is there a way to make sure that these
two I done. I guess I am looking for a function like fflush() but for
sockets.

Thanks