sasabunetic
asked on
get network interrupt
I'm trying to make an application in VC++, for receiving and writting data through network (Socket). Receiving is already working, but it is working so, that the application is running in endless while loop. But I would like to make it so, that I will activate receive function only when network controller will receive something. So something like interrupt.
How can I do this?
Thanks
How can I do this?
Thanks
The BEST way to do this in Windows/MFC is to use the CAsyncSocket class. When you derive a class of your own from CAsyncSocket you can override the OnReceive() handler which will then get called when you have incoming data.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
But select is not an "interrupt".