Independent CAsyncSocket sockets
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hey Ppl, I have 6 classes derived from CASyncSocket namely CMySocket1,2...6 Each of these MySocket class has its own OnReceive() function. Sockets are used for TCP/IP connection and there are 6 'Connect' buttons on the front-end. Application is an SDI app. using CRecordview class. Now what if more than one OnReceive() events get triggered at the same time? There would be a case of data gone missing, isnt it? Alternatively how can i put these sockets in different threads so that they become independent of each other??