<?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>《Go语言TCP Socket编程》的评论</title>
	<atom:link href="http://tonybai.com/2015/11/17/tcp-programming-in-golang/feed/" rel="self" type="application/rss+xml" />
	<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/</link>
	<description>一个程序员的心路历程</description>
	<lastBuildDate>Wed, 25 Mar 2026 09:21:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7571</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Fri, 22 Oct 2021 21:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7571</guid>
		<description>文中也提到了，没有测试出来。从fd_unix.go中的Read方法实现粗略来看，似乎也不存在err!=nil，但n&gt;0的情况。从api设计角度来说，err!=nil，但n&gt;0的情况，对于上层调用者来说也很难处理。</description>
		<content:encoded><![CDATA[<p>文中也提到了，没有测试出来。从fd_unix.go中的Read方法实现粗略来看，似乎也不存在err!=nil，但n&gt;0的情况。从api设计角度来说，err!=nil，但n&gt;0的情况，对于上层调用者来说也很难处理。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：kk</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7570</link>
		<dc:creator>kk</dc:creator>
		<pubDate>Fri, 22 Oct 2021 08:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7570</guid>
		<description>n, err := c.Read(buf) 如果err非nil，n一定是0么？有没有可能err非nil，但n是&gt;0的情况</description>
		<content:encoded><![CDATA[<p>n, err := c.Read(buf) 如果err非nil，n一定是0么？有没有可能err非nil，但n是&gt;0的情况</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Edigar</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7451</link>
		<dc:creator>Edigar</dc:creator>
		<pubDate>Wed, 27 May 2020 13:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7451</guid>
		<description>最近才开始学习go, 非常棒的文章，一篇解决了所有的Socket疑惑,感谢。</description>
		<content:encoded><![CDATA[<p>最近才开始学习go, 非常棒的文章，一篇解决了所有的Socket疑惑,感谢。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7419</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Sat, 08 Feb 2020 01:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7419</guid>
		<description>这个就是Wordpress自带的功能啊。</description>
		<content:encoded><![CDATA[<p>这个就是Wordpress自带的功能啊。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：PierreVon</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7418</link>
		<dc:creator>PierreVon</dc:creator>
		<pubDate>Mon, 03 Feb 2020 15:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7418</guid>
		<description>你这个评论回复功能做的好厉害，请问是用的sql还是nosql存储的评论，前端是怎么渲染的呀？</description>
		<content:encoded><![CDATA[<p>你这个评论回复功能做的好厉害，请问是用的sql还是nosql存储的评论，前端是怎么渲染的呀？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7294</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Sun, 11 Nov 2018 10:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7294</guid>
		<description>可以转载。请在文章开头处明显位置注明出处。</description>
		<content:encoded><![CDATA[<p>可以转载。请在文章开头处明显位置注明出处。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：MartinZ</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7293</link>
		<dc:creator>MartinZ</dc:creator>
		<pubDate>Sun, 11 Nov 2018 08:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7293</guid>
		<description>最近也在做go相关的开发,觉得博主写的非常棒,本人想转载您的文章,是否可以授权我转载呢.如果可以,你对转载有什么要求?</description>
		<content:encoded><![CDATA[<p>最近也在做go相关的开发,觉得博主写的非常棒,本人想转载您的文章,是否可以授权我转载呢.如果可以,你对转载有什么要求?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：isayme</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7270</link>
		<dc:creator>isayme</dc:creator>
		<pubDate>Thu, 20 Sep 2018 08:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7270</guid>
		<description>非常赞. 之前一直很好奇 read/write 的各种行为.</description>
		<content:encoded><![CDATA[<p>非常赞. 之前一直很好奇 read/write 的各种行为.</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7255</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Wed, 15 Aug 2018 12:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7255</guid>
		<description>golang在runtime层的实现实际上是基于epoll(on linux)的，go把复杂性留给了runtime。在goroutine层面，开发者只需要简单的read/write on socket即可，制造一种“block”的假象，降低心智负担。当然也可以自己在goroutine中去做非阻塞。也可以不用这种模型，而是通过syscall自己调用epoll来做。</description>
		<content:encoded><![CDATA[<p>golang在runtime层的实现实际上是基于epoll(on linux)的，go把复杂性留给了runtime。在goroutine层面，开发者只需要简单的read/write on socket即可，制造一种“block”的假象，降低心智负担。当然也可以自己在goroutine中去做非阻塞。也可以不用这种模型，而是通过syscall自己调用epoll来做。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：medivh</title>
		<link>https://tonybai.com/2015/11/17/tcp-programming-in-golang/#comment-7254</link>
		<dc:creator>medivh</dc:creator>
		<pubDate>Wed, 15 Aug 2018 09:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1907#comment-7254</guid>
		<description>建立服务器之后请求过来的连接用户每一个用户都单开一个 goroutine ? 这是golang对socket连接的语言层解决方案吗， 在没有事件轮循环，非阻塞和多路复用的情况下？</description>
		<content:encoded><![CDATA[<p>建立服务器之后请求过来的连接用户每一个用户都单开一个 goroutine ? 这是golang对socket连接的语言层解决方案吗， 在没有事件轮循环，非阻塞和多路复用的情况下？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
