Subj : Re: Sync/Door Programming Question To : alt.bbs.synchronet From : kmcmahon70 Date : Tue Sep 20 2005 11:07 pm From Newsgroup: alt.bbs.synchronet > > Winsock specs claim that WSACleanup() must be called once per each call > > to WSAStartup()... this call, however, seems to destroy the socket I > > picked up from door32.sys and thus when Sync gets it back it appears as > > if the caller disconnected. > > Right, don't call WSACleanup(). :-) > > If I don't call WSACleanup() at the end, it works well but I have a > > feeling this is the wrong/bad way to do this. > > That's the correct way. That's how the Synchronet XSDK handles socket I/O > doors. :-) Thanks for the comments :D It's always comforting to have someone confirm the correct way to do something. Hopefully I'll have a few new doors out soon! Kyle --- Synchronet 3.13a-Win32 NewsLink 1.83 .