When is a good time to close socket
- From: "mike" <nospamplease.com>
- Date: Fri, 14 Mar 2008 07:29:26 -0500
Is there a way to know when the socket has complete transfer of all data?
I am closing the as soon as send() has reported sending that last data. I
have read that this does not
necessarily mean that the transfer is complete but I cannot find how to test
for the condition.
If I put a Sleep(1000) after sending the last data it works. But this is
messy.
thanks
.
- Follow-Ups:
- Re: When is a good time to close socket
- From: Joseph M . Newcomer
- Re: When is a good time to close socket
- From: mike
- Re: When is a good time to close socket
- Prev by Date: Re: Using CString object in non MFC programs
- Next by Date: Re: When is a good time to close socket
- Previous by thread: Using CString object in non MFC programs
- Next by thread: Re: When is a good time to close socket
- Index(es):