<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: re: Socket Programming in C 常犯的錯誤</title>
	<atom:link href="http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/feed/" rel="self" type="application/rss+xml" />
	<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/</link>
	<description>Weblog of a lively geek.</description>
	<lastBuildDate>Thu, 04 Mar 2010 10:35:11 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jeffhung</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4760</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Sun, 14 Dec 2008 15:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4760</guid>
		<description>Libcurl is much better than libwww, though we still encounter some issues in high loading.</description>
		<content:encoded><![CDATA[<p>Libcurl is much better than libwww, though we still encounter some issues in high loading.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fr3@K</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4758</link>
		<dc:creator>fr3@K</dc:creator>
		<pubDate>Fri, 12 Dec 2008 11:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4758</guid>
		<description>If
&lt;blockquote&gt;libwww sucks!!&lt;/blockquote&gt;

Any alternative you would recommend to joney?</description>
		<content:encoded><![CDATA[<p>If</p>
<blockquote><p>libwww sucks!!</p></blockquote>
<p>Any alternative you would recommend to joney?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4757</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Thu, 11 Dec 2008 08:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4757</guid>
		<description>First of all, in my experiences, libwww sucks!! Libwww is full of leaks and other bugs. We should try our best to avoid it.

Secondary, I&#039;d rather use memset() to aggressively prevent any possible errors, unless the profiling result showed that it is the performance bottleneck. After all, the usage of the buffer, currently recv(), may change to other way in the future. Resetting the buffer *right after* defining it would be good, no matter how it would be used later.</description>
		<content:encoded><![CDATA[<p>First of all, in my experiences, libwww sucks!! Libwww is full of leaks and other bugs. We should try our best to avoid it.</p>
<p>Secondary, I&#8217;d rather use memset() to aggressively prevent any possible errors, unless the profiling result showed that it is the performance bottleneck. After all, the usage of the buffer, currently recv(), may change to other way in the future. Resetting the buffer *right after* defining it would be good, no matter how it would be used later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fr3@K</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4756</link>
		<dc:creator>fr3@K</dc:creator>
		<pubDate>Thu, 11 Dec 2008 06:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4756</guid>
		<description>先聲明我沒實作/研究過. 但我知道有很多現成的 Free/OpenSource library.

可以用 &lt;a href=&quot;http://www.w3.org/Library/&quot; rel=&quot;nofollow&quot;&gt;libwww&lt;/a&gt;, 也可以試試 &lt;a href=&quot;http://curl.haxx.se/libcurl/&quot; rel=&quot;nofollow&quot;&gt;libcurl&lt;/a&gt;.

另, 這一 &lt;a href=&quot;http://curl.haxx.se/libcurl/competitors.html&quot; rel=&quot;nofollow&quot;&gt;頁&lt;/a&gt; 有很多功能相近的 library.</description>
		<content:encoded><![CDATA[<p>先聲明我沒實作/研究過. 但我知道有很多現成的 Free/OpenSource library.</p>
<p>可以用 <a href="http://www.w3.org/Library/" rel="nofollow">libwww</a>, 也可以試試 <a href="http://curl.haxx.se/libcurl/" rel="nofollow">libcurl</a>.</p>
<p>另, 這一 <a href="http://curl.haxx.se/libcurl/competitors.html" rel="nofollow">頁</a> 有很多功能相近的 library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joney</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4755</link>
		<dc:creator>joney</dc:creator>
		<pubDate>Thu, 11 Dec 2008 02:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4755</guid>
		<description>你好,向你請教一事
請問一下,如何用C去傳資料給WEB端程式
我的程式是SERVER端程式來檢查我的資料庫
而客戶那邊是WEB的程式,可以用POST或GET傳遞都OK
謝謝你</description>
		<content:encoded><![CDATA[<p>你好,向你請教一事<br />
請問一下,如何用C去傳資料給WEB端程式<br />
我的程式是SERVER端程式來檢查我的資料庫<br />
而客戶那邊是WEB的程式,可以用POST或GET傳遞都OK<br />
謝謝你</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fr3@K</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4433</link>
		<dc:creator>fr3@K</dc:creator>
		<pubDate>Sun, 18 May 2008 16:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4433</guid>
		<description>Hi ik,

請原諒我的孤陋寡聞, 小弟我的確不知道莉洛是那位或是功力有多&quot;牛&quot;. 我在這篇文字所表達的看法與莉洛本人或他的其他豐功偉業無關.

你給我的意見我不是理解的很清楚, 是說只要是莉洛說的話就是真理而不可有不一樣的看法嗎? 如果是這樣的話還請恕小弟不能同意. 抱歉.

希望我們在這裡的交流能夠將焦點放在技術層面, 感謝.

&lt;em&gt;ps. 這個回應&lt;strike&gt;酸&lt;/strike&gt;挖苦的目標不是莉洛, 而是另有其人. 不禮貌的地方還請莉洛包涵.&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Hi ik,</p>
<p>請原諒我的孤陋寡聞, 小弟我的確不知道莉洛是那位或是功力有多&#8221;牛&#8221;. 我在這篇文字所表達的看法與莉洛本人或他的其他豐功偉業無關.</p>
<p>你給我的意見我不是理解的很清楚, 是說只要是莉洛說的話就是真理而不可有不一樣的看法嗎? 如果是這樣的話還請恕小弟不能同意. 抱歉.</p>
<p>希望我們在這裡的交流能夠將焦點放在技術層面, 感謝.</p>
<p><em>ps. 這個回應<strike>酸</strike>挖苦的目標不是莉洛, 而是另有其人. 不禮貌的地方還請莉洛包涵.</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ik</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4432</link>
		<dc:creator>ik</dc:creator>
		<pubDate>Sun, 18 May 2008 14:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4432</guid>
		<description>To fr3@K 

無知的你可能不曉得莉洛他的程式功力到什麼境界，
去多逛逛台灣最大的PTT BBS吧！少在這邊發這種廢文！！
莉洛大這篇文章是直接拷貝大陸的範例來解說的，
那篇原文本來就是用 memset，你真的很好笑ㄟ</description>
		<content:encoded><![CDATA[<p>To fr3@K </p>
<p>無知的你可能不曉得莉洛他的程式功力到什麼境界，<br />
去多逛逛台灣最大的PTT BBS吧！少在這邊發這種廢文！！<br />
莉洛大這篇文章是直接拷貝大陸的範例來解說的，<br />
那篇原文本來就是用 memset，你真的很好笑ㄟ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fr3@K</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4411</link>
		<dc:creator>fr3@K</dc:creator>
		<pubDate>Fri, 09 May 2008 09:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4411</guid>
		<description>Hi person,

看了你的回應, 自己又讀了一遍這篇的文字.

關於這個主題, 我以為我想說的都已經在文中清楚說明了, 暫時沒有想到要補充的地方. 雖然不確定我理解的對不對, lilohuang 的留言似乎表示他是初學者且沒興趣探討細節. 因此我沒打算回應, 抱歉.

若你對這主題有其他想法或是有想討論的地方, 還請不吝賜教.</description>
		<content:encoded><![CDATA[<p>Hi person,</p>
<p>看了你的回應, 自己又讀了一遍這篇的文字.</p>
<p>關於這個主題, 我以為我想說的都已經在文中清楚說明了, 暫時沒有想到要補充的地方. 雖然不確定我理解的對不對, lilohuang 的留言似乎表示他是初學者且沒興趣探討細節. 因此我沒打算回應, 抱歉.</p>
<p>若你對這主題有其他想法或是有想討論的地方, 還請不吝賜教.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: person</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4410</link>
		<dc:creator>person</dc:creator>
		<pubDate>Fri, 09 May 2008 06:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4410</guid>
		<description>這的確是蠻嚴重的觀念偏差...
可能會誤導很多人,就像我現在maintain的專案裡,
都還是會看到很多無謂的memset,看到心理都不是很舒服...
程式經驗不足的人,反而會完全認同這種初始化動作是比較安全的說法...
你要好好的回應那個作者啊~~</description>
		<content:encoded><![CDATA[<p>這的確是蠻嚴重的觀念偏差&#8230;<br />
可能會誤導很多人,就像我現在maintain的專案裡,<br />
都還是會看到很多無謂的memset,看到心理都不是很舒服&#8230;<br />
程式經驗不足的人,反而會完全認同這種初始化動作是比較安全的說法&#8230;<br />
你要好好的回應那個作者啊~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lilohuang</title>
		<link>http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/comment-page-1/#comment-4369</link>
		<dc:creator>lilohuang</dc:creator>
		<pubDate>Tue, 22 Apr 2008 09:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://fsfoundry.org/codefreak/2008/04/22/re-socket-programming-in-c-%e5%b8%b8%e7%8a%af%e7%9a%84%e9%8c%af%e8%aa%a4/#comment-4369</guid>
		<description>基本上一般來講只有 return value &gt; 0 才有必要被觀看
然後依照 ret 的數字大小直接對 buffer[ret] = 0x0; 就夠了

會寫這篇文章的主因是針對一般簡單的範例會把收到的資料透過 printf 出來
而在這個時候 %s 如果沒有抓到  就會引起很大的錯誤

for 初學者而言, 我覺得這個細節上探討是沒有必要的 :)</description>
		<content:encoded><![CDATA[<p>基本上一般來講只有 return value &gt; 0 才有必要被觀看<br />
然後依照 ret 的數字大小直接對 buffer[ret] = 0&#215;0; 就夠了</p>
<p>會寫這篇文章的主因是針對一般簡單的範例會把收到的資料透過 printf 出來<br />
而在這個時候 %s 如果沒有抓到  就會引起很大的錯誤</p>
<p>for 初學者而言, 我覺得這個細節上探討是沒有必要的 <img src='http://fsfoundry.org/codefreak/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
