Hi, there is my problem...
I have a ftp server listen on port 21 and another socket listen on port 5000. Port 5000 gets data from a PABX and writes in a flash.
When the flash is full, i need to close the port 5000 socket asap so i dont lose data, but what is happening is when i tell the port 5000 socket to close it takes some time and it doesnt stop to get data from pabx, so i lose data and there is a worst thing happening, the tcp buffers get full and everything stops working.
How do i clean those tcp buffers after i close the socket? Theres a way to close the socket immediatly?
Thanks.