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?