Hi, I have a program that simply creates a connection using winsock (tcp/ip) and sends some data. Depending on what that data is will trigger an event at the other end. One possible event is that the string "CLOSE" is sent which closes the connection one end and sets the other end to listen. If, however I create a connection again, without stopping and restarting the program then the data doesnt transmit properly.

My question being, are there any buffers that will store data after it has been sent, and if there is can I clear them when the connection is closed?

Regards