<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[PHP socket 编程中的超时设置]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 20 Aug 2010 10:19:44 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	PHP socket 编程中的超时设置.网上找了半天也没找到。贴出来分享之：<br/>设置$socket 发送超时1秒，接收超时3秒：<br/><br/>$socket = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);<br/>socket_set_option($socket,SOL_SOCKET,SO_RCVTIMEO,array(&quot;sec&quot;=&gt;1, &quot;usec&quot;=&gt;0 ) );<br/>socket_set_option($socket,SOL_SOCKET,SO_SNDTIMEO,array(&quot;sec&quot;=&gt;3, &quot;usec&quot;=&gt;0 ) );<br/><br/><br/>English:<br/>SO_RCVTIMEO Reports the timeout value for input operations.&nbsp;&nbsp;array. The array will contain two keys: sec which is the seconds part on the timeout value and usec which is the microsecond part of the timeout value.&nbsp;&nbsp;<br/>SO_SNDTIMEO Reports the timeout value specifying the amount of time that an output function blocks because flow control prevents data from being sent.&nbsp;&nbsp;array. The array will contain two keys: sec which is the seconds part on the timeout value and usec which is the microsecond part of the timeout value. 
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP socket 编程中的超时设置]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>