CAsyncSocket uses Windows messages for callback notifications, and requires
a message pump to receive them. MessageBox (or any function that creates a
modal dialog) spins a message pump.You need to either create a message pump (maybe on a worker thread), or use
blocking sockets, or use other means to obtain notification from
non-blocking sockets (e.g. select or WSAEventSelect).
a message pump to receive them. MessageBox (or any function that creates a
modal dialog) spins a message pump.You need to either create a message pump (maybe on a worker thread), or use
blocking sockets, or use other means to obtain notification from
non-blocking sockets (e.g. select or WSAEventSelect).
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货