CSocket::OnReceive Question
-
I'm writing a program which uses a derived classe of CSocket to handle incoming data. I have overloaded OnReceive to catch the new data. My question is this. In my OnReceive function, I read the data and possibly do something with it. The doing something can take a little time. I'm wondering if OnReceive can be called while I'm still processing a previous OnReceive and thus interrupting my processing. If it can, what kind of protections can I setup to protect the data I access in the function? Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n
-
I'm writing a program which uses a derived classe of CSocket to handle incoming data. I have overloaded OnReceive to catch the new data. My question is this. In my OnReceive function, I read the data and possibly do something with it. The doing something can take a little time. I'm wondering if OnReceive can be called while I'm still processing a previous OnReceive and thus interrupting my processing. If it can, what kind of protections can I setup to protect the data I access in the function? Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n
-
u are just one thread right?? Or multithreading? Papa while (TRUE) Papa.WillLove ( Bebe ) ;
Currently the application is single threaded. My question was, si there a possibility that MFC events or whatever they are called, can they overlap. Or will only one be called at any given time Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n
-
Currently the application is single threaded. My question was, si there a possibility that MFC events or whatever they are called, can they overlap. Or will only one be called at any given time Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n