<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title>网络编程</title>
<link>http://www.kuqin.com/networkprog/</link>
<description>挖经验 / 网络编程</description>
<language>zh-cn</language>
<generator>Copyright &amp;copy; 2007-2008 &lt;A href=&quot;http://www.kuqin.com&quot;&gt;酷勤网&lt;/A&gt; All Rights Reserved
&lt;A href=&quot;http://www.miibeian.gov.cn/&quot; target=&quot;_blank&quot;&gt;京ICP备07011765号&lt;/A&gt;</generator>
<webmaster>kuqin.com@163.com</webmaster>
<item>
    <title>《当C#遭遇老温》之网络通讯编程篇</title>
    <link>http://www.kuqin.com/networkprog/20080703/10334.html</link>
    <description>阅读本文之后您可以将它应用于：游戏开发中的通讯模块、企业ERP、企业客户管理系统、网络聊天系统、C/S软件模型等等网络编程领域,你要相信C#是很强大的！我会用最简明最容易理解的意思进行简述，同时也想给新人指明一条学习C#网络编程的捷径，让你们少通几个宵</description>
    <pubDate>2008-07-03</pubDate>
    <category>网络编程</category>
    <author>老温</author>
    <comments>博客园</comments>
</item>
<item>
    <title>搜狗实验室技术交流文档：epoll简介</title>
    <link>http://www.kuqin.com/networkprog/20080624/10008.html</link>
    <description>编写连接数巨大的高负载服务器程序时，经典的多线程模式和 select模式都不再适用。应当抛弃它们，采用 epoll/kqueue/dev_poll 来捕获 I/O 事件。最后简要介绍了 AIO。  </description>
    <pubDate>2008-06-24</pubDate>
    <category>网络编程</category>
    <author>搜狗实验室</author>
    <comments>搜狗实验室</comments>
</item>
<item>
    <title>开发基于UDP广播的小型局域网聊天室</title>
    <link>http://www.kuqin.com/networkprog/20080525/8899.html</link>
    <description>UDP广播就是建立于UDP协议上的数据传输,当网络中的某一台机向交换机或路由发送一个广播数据时,交换机或路由则会帮我们将此广播数据发送到其节点下的所有接收者.做一个基于UDP广播的聊天室程序时,所以我们就不需要任何的服务端程序做数据中转</description>
    <pubDate>2008-05-25</pubDate>
    <category>网络编程</category>
    <author>Kingthy</author>
    <comments>博客园</comments>
</item>
<item>
    <title>突破select的FD_SETSIZE限制</title>
    <link>http://www.kuqin.com/networkprog/20080522/8809.html</link>
    <description>在很多比较各种网络模型的文章中，但凡提到select模型时，都会说select受限于轮询的套接字数量，这个数量也就是系统头文件中定义的FD_SETSIZE值(例如64)。但事实上这个算不上真的限制。可以参考 boost::asio中的detail/win_fd_set</description>
    <pubDate>2008-05-22</pubDate>
    <category>网络编程</category>
    <author>Kevin Lynx</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>剖析Etwork网络库</title>
    <link>http://www.kuqin.com/networkprog/20080522/8803.html</link>
    <description>Etwork是一个很小巧的网络库。Etwork基于select模型，采用我之前说的技巧，理论上可以处理很多连接(先不说效率)。如同很多网络库一样，总会有一个类似于ISocketManager的类，用于管理所有网络连接(当用户服务器时)。而ISocket则用于代表一个网络连接。</description>
    <pubDate>2008-05-22</pubDate>
    <category>网络编程</category>
    <author>Kevin Lynx</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>windows下C网络编程入门</title>
    <link>http://www.kuqin.com/networkprog/20080512/8362.html</link>
    <description>Winsock是90年代初，为了方便网络编程，由Microsoft联合了其他几家公司共同制定的一套WINDOWS下的网络编程接口，它是通过C语言的动态链接库方式提供给用户及软件开发者的，主要由winsock.h头文件和动态链接库winsock.dll组成，有两个版本：Winsock1.1和Winsock2.0。 </description>
    <pubDate>2008-05-12</pubDate>
    <category>网络编程</category>
    <author>不详</author>
    <comments>互联网</comments>
</item>
<item>
    <title>Linux下Socket编程</title>
    <link>http://www.kuqin.com/networkprog/20080512/8361.html</link>
    <description>网络的Socket数据传输是一种特殊的I/O，Socket也是一种文件描述符。Socket也具有一个类似于打开文件的函数调用Socket()，该函数返回一个整型的Socket描述符，随后的连接建立、数据传输等操作都是通过该Socket实现的。</description>
    <pubDate>2008-05-12</pubDate>
    <category>网络编程</category>
    <author>aobai219</author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>系统设计之 网络模型（三）多路复用模型</title>
    <link>http://www.kuqin.com/networkprog/20080501/7753.html</link>
    <description>多路复用的方式是真正实用的服务器程序，非多路复用的网络程序只能作为学习或着陪测的角色。本文说下个人接触过的多路复用函数：select/poll/epoll/port。kqueue的*nix系统没接触过，估计熟悉了上面四种，kqueue也只是需要熟悉一下而已。</description>
    <pubDate>2008-05-01</pubDate>
    <category>网络编程</category>
    <author>CppExplore</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>系统设计之 网络模型（二）</title>
    <link>http://www.kuqin.com/networkprog/20080501/7752.html</link>
    <description>（1）accept函数在多路复用函数之前，主线程在accept处阻塞，多个从线程在多路复用函数处阻塞；（2）accept函数在多路复用函数之前；（3）多路复用函数在accept之前；（4）连接在单独线程中处理；（5）业务线程独立，下面的网络层读取结束后通知业务线程。</description>
    <pubDate>2008-05-01</pubDate>
    <category>网络编程</category>
    <author>CppExplore</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>系统设计之 网络模型（一）基础篇</title>
    <link>http://www.kuqin.com/networkprog/20080501/7751.html</link>
    <description>（1）包裹宏使用。这些系统调用返回-1表示失败。检测系统调用的返回值是个好习惯，应该说必须检测，如果系统调用总是成功的话，它为何又要有返回值呢？(2)不能返回失败的错误。大多数阻塞式系统调用要处理EINTR错误，另accept还要处理ECONNABORTED。</description>
    <pubDate>2008-05-01</pubDate>
    <category>网络编程</category>
    <author>CppExplore</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>epoll学习笔记</title>
    <link>http://www.kuqin.com/networkprog/20080501/7739.html</link>
    <description>如果上面的实验中,对accept的socket都采用的是LT模式,那么只要还有数据留在buffer中,server就会继续得到通知,读者可以自行改动代码进行实验.通过实验,可以得出这样的结论:ET模式仅当状态发生变化的时候才获得通知,这里所谓的状态的变化并不包括缓冲区中还有未处理的数据</description>
    <pubDate>2008-05-01</pubDate>
    <category>网络编程</category>
    <author>创</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>我们的项目中为socket通信服务的“心跳包” </title>
    <link>http://www.kuqin.com/networkprog/20080414/6694.html</link>
    <description>在我们的考试系统中用到客户端和服务器之间的通信，服务器要时刻知道客户端的网络连接状态，当时我遇到这个问题的时候就没有在网上找到传说中的“心跳包”。只是凭自己心思随想写出了一个解决时下问题的算法。</description>
    <pubDate>2008-04-14</pubDate>
    <category>网络编程</category>
    <author>小胜</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Http环境下的保持连接方式</title>
    <link>http://www.kuqin.com/networkprog/20080412/6552.html</link>
    <description>客户端一直保持一个与服务器的连接，这个连接一直保持着对服务器的请求动作，直到服务器发现有数据后给它返回后，才结束返回这一次请求。客户端在接收到请求返回后，在处理这些返回之前，又向服务器发送了一次连接请求，直到下一次有数据返回。</description>
    <pubDate>2008-04-12</pubDate>
    <category>网络编程</category>
    <author>阿不</author>
    <comments>博客园</comments>
</item>
<item>
    <title>网络编程 心得1 </title>
    <link>http://www.kuqin.com/networkprog/20080410/6435.html</link>
    <description>看《unix 网络编程》，在里面了解到了 链接时的三次握手和关闭时的四次握手，在关闭时最后会有一个TIME_WAIT状态，这个状态时间是TCP里最长的，是二倍MSL时间，大约在1-4分钟。但这样的问题是可以解决的，使用SO_REUSEADDR，可在TIME_WAIT状态下使用相同的PORT。</description>
    <pubDate>2008-04-10</pubDate>
    <category>网络编程</category>
    <author>Bugs</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>Http多线程下载与断点续传分析</title>
    <link>http://www.kuqin.com/networkprog/20080410/6434.html</link>
    <description>这个版本中加入了断点续传的功能，使用了XML文件保存任务列表及状态信息，并且支持多线程分段下载, 提高下载速度，在这一个版本中，我把它叫做: JLoading 因为我还想不出一个更好听一点或更酷一些的名字，而且我还想让他可以下载一些其它文件。</description>
    <pubDate>2008-04-10</pubDate>
    <category>网络编程</category>
    <author>huliqing</author>
    <comments>BlogJava</comments>
</item>
<item>
    <title>二进制和XML两种网络数据格式的比较</title>
    <link>http://www.kuqin.com/networkprog/20080327/5225.html</link>
    <description>个人认为XML格式的数据包仅在可扩展性上有较大的优势，但是对于安全性，性能要求不太高而扩展性要求较大的协议还是建议使用XML格式的协议，毕竟如果协议制定的不好造成扩展性差也是麻烦的事情，因为客户端一旦放出去就收不回来的。</description>
    <pubDate>2008-03-27</pubDate>
    <category>网络编程</category>
    <author>创</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>Socket 死连接详解</title>
    <link>http://www.kuqin.com/networkprog/20080316/4623.html</link>
    <description>对于 Socket 程序设计来说，良好的通信协议才是稳定的保证，类似于这样的问题，如果在应用程序通信协议中加入自己的心跳包，不仅可以处理多种棘手的问题，还可以在心跳中加入自己的简单校验功能，防止包数据被 WPE 等软件篡改。</description>
    <pubDate>2008-03-16</pubDate>
    <category>网络编程</category>
    <author>Zealic</author>
    <comments>博客园</comments>
</item>
<item>
    <title>IOCP Tips</title>
    <link>http://www.kuqin.com/networkprog/20080312/4403.html</link>
    <description>Tip 1 : 使用WSASend/WSARecv来收发数据，而不是使用ReadFile/WriteFile；Tip 2:  理解IOCP的最大并发线程数和工作线程数；Tip 3: 利用GetQueuedCompletionStatus的completion key和overlapped structure参数在异步操作中来传递信息；Tip 4: 理解IOCP的完成包的排队行为</description>
    <pubDate>2008-03-12</pubDate>
    <category>网络编程</category>
    <author>小明</author>
    <comments>博客园</comments>
</item>
<item>
    <title>网络编程中如何得知一次请求（或响应）的数据已接收完</title>
    <link>http://www.kuqin.com/networkprog/20080311/4391.html</link>
    <description>所有的数据传输，都使用异步来完成，而只需要在3和7处为业务编写数据处理代码即可。实际上，对于反向代理来说，只需要处理客户端发来的数据就可以了，需要把HTTP的HOST头替换为真实服务器，而对于服务器响应的数据，只需要原样发送给客户端就可以了。</description>
    <pubDate>2008-03-11</pubDate>
    <category>网络编程</category>
    <author>大石头</author>
    <comments>博客园</comments>
</item>
<item>
    <title>学习网络编程的十个步骤</title>
    <link>http://www.kuqin.com/networkprog/20070922/1201.html</link>
    <description>2）掌握网络编程中会用到的几个基本概念和内涵，比如IP地址，port号，socket等；3）记住和消化网络编程C/S模型，把server和client端编程的常用模式理解和消化；4）花几天时间学习socket api集； 5）结合python互动平台，实践socket api的用法</description>
    <pubDate>2007-09-22</pubDate>
    <category>网络编程</category>
    <author>waterinfire</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>Socket编程知识必学</title>
    <link>http://www.kuqin.com/networkprog/20070905/877.html</link>
    <description>套接字的三种类型：流式套接字（SOCK_STREAM），数据报套接字（SOCK_DGRAM）及原始套接字(RAW)。</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>cnscn</author>
    <comments>cublog</comments>
</item>
<item>
    <title>很幽默的讲解六种Socket I/O模型</title>
    <link>http://www.kuqin.com/networkprog/20070905/876.html</link>
    <description>一：select模型
二：WSAAsyncSelect模型
三：WSAEventSelect模型
四：Overlapped I/O 事件通知模型
五：Overlapped I/O 完成例程模型
六：IOCP模型</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>不详</author>
    <comments>互联网</comments>
</item>
<item>
    <title>Windows网络编程经验小结</title>
    <link>http://www.kuqin.com/networkprog/20070905/875.html</link>
    <description>在client连接服务器过程中，如果处于非阻塞模式下的socket在connect()的过程中可以设置
connect()延时,直到accpet()被呼叫(本函数设置只有在非阻塞的过程中有显著的作用，在阻塞
的函数调用中作用不大)...</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>gdy119 (夜风微凉) </author>
    <comments>CSDN博客</comments>
</item>
<item>
    <title>网络编程中体会Wait与Waitpid的区别</title>
    <link>http://www.kuqin.com/networkprog/20070905/874.html</link>
    <description>1.当子进程结束的时候,父进程会收到SIGCHLD通知
  2.进程可以调用wait/waitpid等待此Signal.为了减少僵尸进程的产生,我们可以采用waitpid而减少wait的使用,虽然僵尸进程可以由init回收</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>LG</author>
    <comments>C++博客</comments>
</item>
<item>
    <title>Socket网络编程学习笔记（6）：使用线程池提高性能</title>
    <link>http://www.kuqin.com/networkprog/20070905/873.html</link>
    <description>Windows操作系允许用户维持一池“预先建立的”线程，这个线程池为应用程序中指定的方法提供工作线索。一个线程控制线程池的操作，并用应用程序可以分配附加的线程进行处理。</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>licongjie</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Socket网络编程学习笔记（5）：发送和接收实体类数据</title>
    <link>http://www.kuqin.com/networkprog/20070905/872.html</link>
    <description>大家都知道，要想在网络上传输信息，必须要经过序列化才行，所以在传送类对象时，首选必须对该类对象进行序列化，才能够在网络上进行传输。这里主要讲一下利用Soap序列化来传送消息。</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>licongjie</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Socket网络编程学习笔记（4）：TCP消息边界处理</title>
    <link>http://www.kuqin.com/networkprog/20070905/871.html</link>
    <description>在本篇中将会讲一下TCP通信时的信息边界问题。通过套接字或其助手类来接收信息时，是从缓存区里一次性把全部的缘存都读取出来，只要你设置的缓存够大，它就能读取这么多，这样就会导致这样的情况出现。</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>licongjie</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Socket网络编程学习笔记（3）：利用套接字助手类</title>
    <link>http://www.kuqin.com/networkprog/20070905/870.html</link>
    <description>在本篇中，将利用C＃套接字的助手类来简化Socket编程，使得刚刚接触到网络编程的朋友们更容易上手。通过C＃套接字的助手类来编程同样分服务端和客户端...</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>秩名</author>
    <comments>酷勤网</comments>
</item>
<item>
    <title>Socket网络编程学习笔记（2）：面向连接的Socket</title>
    <link>http://www.kuqin.com/networkprog/20070905/869.html</link>
    <description>服务端Socket侦听主要分以下几个步骤，按照以下几个步骤我们可以很方便的建立起一个Socket侦听服务，来侦听尝试连接到该服务器的客户Socket，从而建立起连接进行相关通讯...</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>licongjie</author>
    <comments>博客园</comments>
</item>
<item>
    <title>Socket网络编程学习笔记（1）：常用方法介绍</title>
    <link>http://www.kuqin.com/networkprog/20070905/868.html</link>
    <description>在讲Socket编程前，本章我们先来看一下几个最常用的类和方法，相信这些东西能让你事半功倍。</description>
    <pubDate>2007-09-05</pubDate>
    <category>网络编程</category>
    <author>licongjie</author>
    <comments>博客园</comments>
</item>

</channel>
</rss>
