Link to home
Start Free TrialLog in
Avatar of sasabunetic
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
Avatar of jhance
jhance

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
Avatar of jrocnuck
jrocnuck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
But select is not an "interrupt".