I made a Web Server program to host webpages, but i am having one little problem, when the user requests a graphic thats on the webpage the server reads the file name and sends it to the user, but right after it is done sending the file to the port (80) it closes the connection and that in turn kills all of the data that was in the port, and the file is not displayed because it wasnt downloaded all the way, is there a way to find out how much data is in the port? so i can say

if portdata >0 then keep sending else close connection

Thank you,
Jeremy H.


------------------
[email protected]