<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>旁观者 - 郑昀 - C++</title><link>http://blog.csdn.net/zhengyun_ustc/category/10874.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Mon, 21 Apr 2008 11:53:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>郑昀</dc:creator><title>[Socket]尴尬的CLOSE_WAIT状态以及应对策略</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/30/273696.aspx</link><pubDate>Sun, 30 Jan 2005 00:24:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/30/273696.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/273696.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/30/273696.aspx#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/273696.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=273696</trackback:ping><description>本文阐述了为何socket连接锁定在CLOSE_WAIT状态，以及通过什么措施力求避免这种情况。

总结
也许我们避免不了CLOSE_WAIT状态冻结的再次出现，但我们会使影响降到最小，希望那个重用套接字选项能够使得下一次重新建立连接时可以把CLOSE_WAIT状态踢掉。而且通过设置SO_LINGER为零，使得我们主动拆除连接时，风险降低。
&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/273696.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[收藏]深入浅出的《网络socket编程指南》</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/23/264352.aspx</link><pubDate>Sun, 23 Jan 2005 00:56:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/23/264352.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/264352.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/23/264352.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/264352.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=264352</trackback:ping><description>该篇文章是Socket里讲得比较透彻，行文风格很流畅，细节照顾得较周到。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/264352.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[C++]监控特定文件夹的事件：三种解决方法汇总</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/19/260178.aspx</link><pubDate>Wed, 19 Jan 2005 23:21:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/19/260178.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/260178.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/01/19/260178.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/260178.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=260178</trackback:ping><description>LDBIVR程序中要监视特定文件夹的文件落地或者删除事件，本来要用SHELL中的事件通知机制，后来因为要考虑到各种意外事件，如服务意外退出、服务器崩溃等，遂作罢。
对于目录事件异步通知，大致有三个方法：
调用Windows的api函数ReadDirectoryChanges监视指定目录中文件（推荐使用），这个使用异步IO;
或者用SHChangeNotifyRegister和SHChangeNotifyDeregister来注册事件SHChangeNotify;
或者调用API函数－FindFirstChangeNotification 、FindCloseChangeNotification、FindNextChangeNotification 和WaitForSingleObject.

著名的FileMon工具用的是虚拟驱动。 
 
相关资源：
1：《监视程序的编制》；
2：《Win32中的目录监控》；
3：《change journals》；
4：《CDirectoryChangeWatcher - ReadDirectoryChangesW all w&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/260178.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[C++]打包传输结构体或大内存块的四种办法(完全版)</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/12/15/217635.aspx</link><pubDate>Wed, 15 Dec 2004 20:40:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/12/15/217635.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/217635.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/12/15/217635.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/217635.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=217635</trackback:ping><description>摘要：本文阐述了结构体/大内存块分布式传输时常用的四种打包方法，并演示了您如何利用这四种方法通过MSMQ发送/读取数据。

解法一、二和四依赖于Microsoft平台，而boost::serialization解法则仅依赖于ANSI C++标准的设施，很容易移植。
解法一和二只是简单地复制字节流，对于Deep Pointer的传输可能就要借助于boost::serialization解法了，它可以保存和恢复pointers，也可以保存和恢复pointer所指向的数据，甚至可以正确处理指向共享数据的pointers。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/217635.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[C#]C++调用dotNet组件的步骤</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/09/23/113810.aspx</link><pubDate>Thu, 23 Sep 2004 09:28:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/09/23/113810.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/113810.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/09/23/113810.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/113810.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=113810</trackback:ping><description>C#写的组件，一般C++无法调用。除非在C#中这么做。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/113810.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[Regex]Greta不支持“Named Groups”特性</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/09/22/112710.aspx</link><pubDate>Wed, 22 Sep 2004 10:45:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/09/22/112710.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/112710.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/09/22/112710.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/112710.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=112710</trackback:ping><description>微软研究院出品的Greta并不支持“Named Groups”特性，这在dotNet Regex引擎中是提供的。
在Greta花费了半天时间总是试验不出来这个特性后，只好去问了维护这个引擎的微软工程师。下面是来往信件。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/112710.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[收藏]Socket API，CAsyncSocket，CSocket内幕及其用法 </title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/08/06/67191.aspx</link><pubDate>Fri, 06 Aug 2004 17:02:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/08/06/67191.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/67191.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/08/06/67191.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/67191.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=67191</trackback:ping><description>Socket API，CAsyncSocket，CSocket内幕及其用法
jmcooler（原作）  
  
关键字     Socket CAsyncSocket CSocket CSocketFile 同步(阻塞) 异步(非阻塞) &lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/67191.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>Richedit control的设置背景图片办法</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/07/20/46273.aspx</link><pubDate>Tue, 20 Jul 2004 18:00:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/07/20/46273.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/46273.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/07/20/46273.aspx#Feedback</comments><slash:comments>13</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/46273.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=46273</trackback:ping><description>仰仗kenwhale的指点，我试验好了Richedit控件的背景图片设置（VC++6.0+Sp6环境下）。
&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/46273.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>部分省短信乱码或空短信问题的汇报</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/07/08/37224.aspx</link><pubDate>Thu, 08 Jul 2004 18:05:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/07/08/37224.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/37224.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/07/08/37224.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/37224.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=37224</trackback:ping><description>使用Unicode或者GB方式发送短信，有几省的用户接收到空短信或者乱码；同时，2/3的省份用户接收正常。知道其中一种原因是什么吗？&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/37224.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zhengyun_ustc</dc:creator><title>结构或大内存块打包的办法（上1.1）</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12752.aspx</link><pubDate>Tue, 24 Feb 2004 10:41:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12752.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/12752.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12752.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/12752.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=12752</trackback:ping><description>&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/12752.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zhengyun_ustc</dc:creator><title>结构或大内存块打包的办法（下）</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12748.aspx</link><pubDate>Tue, 24 Feb 2004 10:41:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12748.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/12748.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12748.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/12748.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=12748</trackback:ping><description>&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/12748.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zhengyun_ustc</dc:creator><title>结构或大内存块打包的办法（中）</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12749.aspx</link><pubDate>Tue, 24 Feb 2004 10:41:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12749.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/12749.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12749.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/12749.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=12749</trackback:ping><description>&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/12749.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zhengyun_ustc</dc:creator><title>结构或大内存块打包的办法（上2）</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12750.aspx</link><pubDate>Tue, 24 Feb 2004 10:41:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12750.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/12750.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12750.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/12750.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=12750</trackback:ping><description>&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/12750.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zhengyun_ustc</dc:creator><title>结构或大内存块打包的办法（上1.2）</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12751.aspx</link><pubDate>Tue, 24 Feb 2004 10:22:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12751.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/12751.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2004/02/24/12751.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/12751.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=12751</trackback:ping><description>&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/12751.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>zhengyun_ustc</dc:creator><title>[Boost]一种简单的批分字符串的办法</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2003/08/12/12725.aspx</link><pubDate>Tue, 12 Aug 2003 10:25:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2003/08/12/12725.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/12725.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2003/08/12/12725.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/12725.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=12725</trackback:ping><description>&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/12725.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>