I have written a custom FTP app using the socket class.

I have been having some trouble with my download function.

I have been checking the socket.Avialable property to see if there is any more data left to get but some times that value is 0 even though that there is more data.

As a result some of my bigger files are not downloading completely.

Any help would be great.

Thanks,
QWERT