Subj : Re: MFC CSocket with Multithreading To : comp.programming.threads From : Phil Frisbie, Jr. Date : Tue Mar 22 2005 05:30 pm Gospill wrote: > Hi, > > I encountered an issue of Multithreading with CSocket. I'm using NDK2.0. > The communication will only work with UI Thread. Other Worker Thread will > not work. In brief, it only can support one single thread. Yes, there was just a discussion on a network group last week about this. Bottom line is CSocket is a badly implemented wrapper for Winsock and is NOT thread safe, so just use Winsock directly. http://tangentsoft.net/wskfaq/articles/csocket.html > How can I fix this, so that I can apply worker Thread as well in CSocket, to > be multi Threading CSocket ? > > If there is any good example, kindly let me know. > > Thanks. -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com .