⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpw_w32_net_95.html

📁 VC programing
💻 HTML
字号:
<HTML>
<HR><A NAME=WIN32_NET_SELECT_TIMEOUT>
Return to <a href="wpw_w32_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: Need timer alarm on a blocking socket</H4><PRE>

In article <jwerner-2207951202170001@jwerner.taligent.com>, jwerner@taligent.com (John Werner) writes:
|> In article <3ugirs$k9e@sparcipc.starnet.com>, schoch@sparcipc.starnet.com
|> (Steven Schoch) wrote:
|> 
|> > Why not use select() with a timeout?
|> 
|> I've got a select() question similar to David's original one: Is there a
|> good way to interrupt a select() call?

How about WSACancelBlockingCall()?  If this won't work from a different
thread (I'm not sure about this), post a message to a window of the thread
doing the select() call.  On receiving this message, call WSACancelBlockingCall().

	Steve
</PRE> 

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -