dimanche 22 février 2015

How to prevent WSASend() from blocking my UI thread?


I want to use Overlapped I/O with Completion Routine to handle client connections.


In my UI thread I want to use WSASend(), but in order for the system to call my callback function to inform me that data has been sent, the UI thread must be in a wait state, but this will freeze my UI!


How should I fix this problem?




Aucun commentaire:

Enregistrer un commentaire