Socket has completed sending and implementing timeouts.
Posted on 2006-05-05
I would like to know how to find out if the socket has completed sending the data.
I am using Socket.Send(bytes) to send data and this send method returns int, that specifies number of bytes sent....How Can I be sure if all the data has been sent?
What I need to do is
1. We want to start a timeout only after we finish sending the entire data. We can use setsocket option ,send time out to acheive a send timeout but
We are using asynchrous receive, and we would like to only wait for say 60 secs to receive anything from the client.
What is teh best way to accomplish this?