Advertisement

Can IO completion port socket close graceful?

Started by March 08, 2005 08:22 PM
1 comment, last by houstond 19 years, 11 months ago
I work in WINNT.I use IO completion port mode in server program,and use nonblocking socket in client program.Both they are TCP stream socket.When I closesocket the socket which connect to the client,client can't always receive the last message from server. I know tcp socket ought to ensure all message has been received before close.But why IO completion port mode socket not?What can I do? Thank you very much! regards
Work hard
Before calling closesocket, call shutdown.
Advertisement
yes,thanks!
Work hard

This topic is closed to new replies.

Advertisement