How to send separate TCP packets to socket
Posted on 2001-08-02
I need to send a stream of data immediately after another data is sent, but in different TCP packet.
Send(sock1, data1, ...);
Send(sock1, data2, ...);
Currently these two data will appear in a single TCP packet ( I captured it from network monitor).
Is there any way to force the winsock to break these as two packet, or any function such as flush() that can be called before I send the data2.