Quote:
PS: Max, I'm outa active Gnutella development ... I described my problems with this community in another thread. But I wanted to give some feedback here, I still work on network classes.
|
this i've understood. so i did not 'force' to answer you personaly, but its' still nice that you did.
with regard to closing sockets i wasn't talking about CAsyncSoclet, but about sockets in general. Looks like there is no elegant way to do it at all -- neither poll(), nor select() provide support for safe-async-close, so the only solution I see is to call ioctl() in 'OnTimer()' or in 'Heartbeat()' to see if send buffer of the socket we'd like to close has cleared up...
regards,
still hope to see you around
--Max