Subj : Re: Sync/Door Programming Question To : kmcmahon70 From : Digital Man Date : Thu Sep 22 2005 01:05 am Re: Re: Sync/Door Programming Question By: kmcmahon70 to alt.bbs.synchronet on 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! Cool. Be sure to upload them here! :-) digital man Snapple "Real Fact" #154: Americans spend more than $630 million a year on golf balls. .