Flush a socket in C++
I tried to flush a socket after calling to send function in c++. I used winsock2.h library. I need to send the data immediatly after the send message, but I can not find any function like flash function. I am trying to send messages to a device and it expect receiving messages one by one. I mean that if I sending two messages in the sender like "MessageOne" and "MessageTwo", the receiver received "MessageOneMessageTwo" that is not seperate, and the device not recognize the commands. So how can I do that? There is nothing you can do on the send side to make the receive side receive messages