> A question on the notification that I get on send:  Do I get this
> notification when I send or when the send is completed?  Will I get one
> when the data is successfully received at the device?

you get the notification when the send is complete.  I think there is still
no guarantee that the other end has received the data, just that it has been
sent.  Scenario:  (My memory of how this works may not be right, it's been a
while) you make an iocp write, the data hits the wire, you get iocp
completed "success", some router along the way dies and the data never
actually makes it.  You never find out until your tcp layer "times out"
trying to sync the connection.  The way you are notified is all your
outstanding IOs return failed once the tcp layer "times out" on the sync.
The bottom line is a return of "success" on a write doesn't necessarily mean
the other end actually received the data, just that it was sent
successfully.

I think a quick timeout (and an easy experiment to try) is to just unplug
your cat5.  Windows brings the interface down and immediately all net
connections are dropped (not real nice btw), causing your outstanding IOs to
return failed.  If you try it out, let me know if M$ still have this
"feature".

/dev


_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to