wpw_w32_net_95.html

来自「VC programing」· HTML 代码 · 共 23 行

HTML
23
字号
<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 + =
减小字号Ctrl + -
显示快捷键?