I created a vb app with a winsock control that transfers files via tcp/ip connection, but one problem i am having is finding out if the data on one end has been fully captured and put into a string, meaning i send data to the client program the winsock gets the data and adds it to a "buffer", then saves it to file. I need to find out if any data remains in the port that i am sending to so when no more data is in the port I can send an all clear signal to the server program. I tryed using peekdata but it says 0 data is in the port which i know is wrong. is their another way to see if data exists in the port??
Thank you,
Jeremy
