I tried to clear the socket after calling the send function in C ++.
I used the winsock2.h library.
I need to send data immediately after sending a message, but I can not find any function, for example, the flash function.
I am trying to send messages to a device and expect to receive messages one by one.
I mean, if I send two messages in the sender, such as "MessageOne" and "MessageTwo", the recipient received a "MessageOneMessageTwo", which is not separate, and the device does not recognize the commands.
So how can I do this?
c ++ sockets network-programming winsock2
nrofis
source share