﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><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++博客-Linux/UNIX、C++、Boost、ACE、Shell</title><link>http://www.cppblog.com/athxy/</link><description>Linux C++训练营</description><language>zh-cn</language><lastBuildDate>Mon, 13 Apr 2026 10:49:03 GMT</lastBuildDate><pubDate>Mon, 13 Apr 2026 10:49:03 GMT</pubDate><ttl>60</ttl><item><title>Linux C++高性能网络编程</title><link>http://www.cppblog.com/athxy/archive/2014/03/20/206244.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Thu, 20 Mar 2014 08:09:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2014/03/20/206244.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/206244.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2014/03/20/206244.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/206244.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/206244.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 轩辕高端C++培训：专注 Linux下C/C++、ACE、Boost、高性能服务器端应用 开发技术培训<br>http://xuanyuan-soft.cn/&nbsp;&nbsp;<a href='http://www.cppblog.com/athxy/archive/2014/03/20/206244.html'>阅读全文</a><img src ="http://www.cppblog.com/athxy/aggbug/206244.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2014-03-20 16:09 <a href="http://www.cppblog.com/athxy/archive/2014/03/20/206244.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java02:使用Jdbc连接Oracle数据库</title><link>http://www.cppblog.com/athxy/archive/2013/09/03/202986.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Tue, 03 Sep 2013 07:03:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2013/09/03/202986.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/202986.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2013/09/03/202986.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/202986.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/202986.html</trackback:ping><description><![CDATA[<div><div id="rt-mainbody"> 		                                 <div "=""> 	<div> 		 				<div><h1></h1></div></div></div></div></div><div>Java02:使用Jdbc连接Oracle数据库<br /><br />一、编写代码<br /><br />import java.sql.Connection;<br />import java.sql.DriverManager;<br />import java.sql.ResultSet;<br />import java.sql.SQLException;<br />import java.sql.Statement;<br /><br />public class JdbcTest02 {<br /><br />&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Connection con = null;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Statement st = null;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ResultSet rs = null;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String driver = "oracle.jdbc.driver.OracleDriver";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String url = "jdbc:oracle:thin:@localhost:1521:xe";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String user = "xuanyuan";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String password = "xuanyuan";<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Class.forName(driver);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con = DriverManager.getConnection(url, user, password);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; st = con.createStatement();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rs = st.executeQuery("select sysdate from dual");<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while (rs.next())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(rs.getString(1));<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } catch (ClassNotFoundException e) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.printStackTrace();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } catch (SQLException e) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.printStackTrace();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } finally {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (rs != null) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rs.close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } catch (SQLException e) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.printStackTrace();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (st != null) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; st.close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } catch (SQLException e) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.printStackTrace();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (con != null) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } catch (SQLException e) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.printStackTrace();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br />}<br /><br />二、编译代码<br /><br />$ javac JdbcTest02.java<br /><br />三、运行程序 JdbcTest02<br /><br />$ java -cp /opt/javalib/orajdbc/ojdbc14.jar:. JdbcTest02<br />2009-10-31 14:34:50.0<br /><br />说明：Oracle和MySQL的jdbc 驱动都在 /opt/javalib/目录下<br /><div><strong></strong><a href="http://www.xuanyuan-soft.cn/"><strong>轩辕高端Linux</strong>下<span style="color: #008000;"><strong>C/C++</strong></span>、<span style="color: #ff0000;"><strong>ACE</strong></span>、<span style="color: #0000cd;"><strong>Boost</strong></span>、<span style="color: #ff8c00;"><strong>高性能服务器端应用</strong></span> 开发技术培训</a></div></div><img src ="http://www.cppblog.com/athxy/aggbug/202986.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2013-09-03 15:03 <a href="http://www.cppblog.com/athxy/archive/2013/09/03/202986.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux下C/C++、ACE、Boost、高性能服务器端应用 开发技术</title><link>http://www.cppblog.com/athxy/archive/2013/01/27/197585.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Sun, 27 Jan 2013 06:41:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2013/01/27/197585.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/197585.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2013/01/27/197585.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/197585.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/197585.html</trackback:ping><description><![CDATA[<div><div> 	 	 	   <h1><span style="font-size: 12pt; ">Linux C++</span><span style="font-size: 12pt; ">培训（现场及远程班）</span></h1> <div id="区域1" dir="LTR"><div> 中国唯一一家专注 <strong>Linux</strong>下<span style="color: #008000;"><strong>C/C++</strong></span>、<span style="color: #ff0000;"><strong>ACE</strong></span>、<span style="color: #0000cd;"><strong>Boost</strong></span>、<span style="color: #ff8c00;"><strong>高性能服务器端应用</strong></span> 开发技术培训的机构。</div><h2>上课方式</h2> 	<p>       现场班：全日制脱产学习、历时4个月，每月开班。</p> 	<p>       远程班：远程视频学习，学习时间自定,随时开课。</p> 	<h2>课程模块</h2> 	<p>       Linux 	C++全科班课程由以下模块组成：</p> 	<h2>Module01 	- Linux系统基础</h2> 	<p>       由于本系列课程基于Linux（或UNIX），熟悉Linux操作系统是必要的前提。 	该模块的课程包含以下方面的内容：</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>常用Unix/Linux</strong><strong>命令</strong><br />熟悉文件管理、文本处理、进程管理、网络、系统管理等各个方面大约100个常用的命令。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>深入了解bash</strong><br />了解Linux默认shell: 		bash 的语法、命令执行、I/O重定向、任务控制等。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>正则表达式基础</strong><br />由于UNIX/Linux中很多强大的文本处理命令如：grep、awk、sed，还有vi编辑器等工具配合正则表达式将产生强大的威力，所以熟悉正则表达式语法是十分必要的。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>find</strong><strong>、grep</strong><strong>、sed</strong><strong>、awk</strong><br />四个强大的UNIX工具，特别是sed、awk在文本处理方面的能力非常强大，在Linux下工作应该掌握这几个命令。 				</p> 	</li></ul> 	<h2>Module02 	- Linux开发环境</h2> 	<p>       不同系统平台下的开发工具、开发环境各有不同。该模块课程关注的是Linux 	C++/C开发所必需的一系列工具：</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>vi(vim)</strong><strong>文本编辑器</strong><br />一个UNIX世界标准的文本编辑器，简约而强大，不论作为开发人员还是系统管理员，熟练使用vi是一项基本的、且不可或缺的技能。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>gcc/g++ 		C/C++</strong><strong>编译器</strong><br />通过具体的示例讲解使用gcc/g++编译单个、多个文件、共享库、静态库等。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>gdb 		</strong><strong>调试器</strong><br />通过具体的示例来熟悉通过gdb来调试C/C++应用程序、修正应用程序运行期的错误。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>make</strong><strong>和makefile</strong><br />学习编写makefile，使用make来构建一个完整的项目。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>CVS 		- </strong><strong>版本控制</strong><br />运用CVS来进行代码的版本控制。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>Eclipse 		CDT</strong><br />一个非常强大的C/C++ 		IDE，强大的文本编辑器、与GCC工具链的无缝结合、方便的gdb前端、集成CVS/Subversion等版本控制等，提供众多的便利，大大减轻开发者的负担。 				</p> 	</li></ul> 	<h2>Module03 	- C++编程语言</h2> 	<p>       深入讲解C++编程语言的各个方面，即完整的C++语法讲解：</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>语言基础</strong><br />详细介绍变量、表达式、语句、指针、数组、流程控制、函数、文件组织等。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>抽象机制 - 		</strong><strong>面向对象编程</strong><br />深入讲解C++的抽象机制，封装（类）、继承、多态；操作符重载、函数对象、异常处理等。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>模板 - 		</strong><strong>泛型编程</strong><br />详细介绍C++的模板机制，类模板、函数模板、模板特化等方面的内容。 				</p> 	</li></ul> 	<h2>Module04 	- C++标准库</h2> 	<p>       完整地讲解STL各大组件：容器、算法、函数对象、容器适配器、迭代器、迭代器适配器等；另外还包括string、I/O 	stream；为了更好地了解STL容器的特性、排序算法，额外安排：数据结构简介和常用排序算法简介2个部分的内容。</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>常用数据结构简介</strong><br />介绍动态数组、linked-list、binary 		search tree、rb-tree、hash 		table、stack、queue、heap等常用的数据结构。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>STL</strong><strong>容器详细介绍</strong><br />vector、list、deque、stack、queue、priority_queue、map、set等容器的特性和用法。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>常见排序算法介绍</strong><br />简要介绍各种常见排序算法的原理，及其实现。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>STL</strong><strong>算法和预定义函数对象</strong><br />标准库提供了多达60多个算法函数，涉及排序、搜索、排列组合等多个方面，其中多数算法会使用如greater、less、binder2nd等函数对象，该单元的课程详细介绍了上述算法的使用和相关函数对象的具体作用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>迭代器</strong><br />STL容器和算法高度解耦，而算法之所以能方便的作用于STL容器，维系二者的就是迭代器。<br />在这个单元的课程中讲介绍C++迭代器的类别、各类迭代器适配器的用法。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>string 		- </strong><strong>字符串</strong><br />相对于C风格的字符串处理，C++提供了更安全和方便的字符串类型 		string，给class提供类众多的方法确保针对字符串处理的安全、便捷性。该单元的课程讲完整地介绍string的使用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>I/O 		stream</strong><br />C++标准库提供的一个强大的I/O流框架。本单元详细介绍标准输入/输出、文件输入/输出、字符串输入/输出流的运用，利用操控符来控制输入/输出的格式。 				</p> 		</li><li><p style="margin-bottom: 0cm">&nbsp;<strong>数值</strong><br />介绍C++数值运算的算法，如valarray、4组数值算法函数、随机数等方面的内容。 				</p> 	</li></ul> 	<h2>Module05 	- C++ Boost</h2> 	<p>        	 Boost是由C++标准委员会成员发起、众多C++业界高人参与设计并实现的一个涉及面广、质量高且业已广泛使用的C++标准后备库，其中 	 TR1已经被纳入C++0x标准库。不论从风格和内容组织上讲，都可以认为Boost项目是C++标准库的延伸。截止到boost 	 1.43版本，boost项目拥有大约100个用途广泛的实用库。这部分课程将介绍服务器端开发所需要的几个组件：</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>容器与数据结构</strong><br />介绍boost.any, 		boost.tuple, boost.array, boost.unordered(基于hash 		table，即hash_map和hash_set)等组件。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>字符串算法和文字处理</strong><br />介绍boost.lexical_cast, 		boost.format, boost.string_algo等组件。  		</p> 		</li><li><p style="margin-bottom: 0cm"><strong>正则表达式</strong><br />正则表达式语法（perl正则表达式语法）的讲解，boost.regex库的使用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>智能指针</strong><br />详细介绍shared_ptr、scoped_ptr、weak_ptr等智能指针的使用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>函数对象相关</strong><br />详细介绍boost.bind, 		boost.mem_fn, boost.function, boost.ref, boost.lambda等组件。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>序列化</strong><br />通过实例熟悉boost.serialization库的用法。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>日期与时间</strong><br />boost.date_time库的详细介绍。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>多线程</strong><br />作为服务器端开发必不可少的内容之一：多线程支持，boost提供了一个跨平台的线程库：boost.thread。<br />本单元的课程详细介绍boost.thread。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>网络编程</strong><br />boost.asio库，通过对各类操作系统原生的socket 		API以及事件多路分离、异步I/O 		API的封装，构成了一个性能优秀、便于编程的网络编程框架，使复杂的网络编程任务变得简单、安全、并且高效。<br />本单元的课程通过一系列的示例来展示：通过asio来构建TCP同步/异步服务器和客户端、UDP同步/异步服务器和客户端应用，从而熟悉asio的接口和编程套路。 				</p> 	</li></ul> 	<h2>Module06 	- C++ ACE</h2> 	<p>        	ACE是一个被广泛使用、设计优雅、高性能的C++通信框架（不仅仅是通信框架），其设计及实现被众多开源框架所借鉴。是构建稳定、高性能、高吞吐量、跨平台的服务器端程序的优秀框架。本模块的课程包含以下几个方面：&nbsp;</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>ACE</strong><strong>基础网络I/O</strong><strong>相关对象</strong><br />详细介绍ACE_SOCK、ACE_SOCK_Acceptor、ACE_SOCK_Connector、ACE_INET_Addr等class的使用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>Reactor</strong><strong>框架</strong><br />ACE 		Reactor框架简化事件驱动程序的开发，而事件驱动是很多网络化应用的基本特征，这些应用常见的事件源包括I/O事件、Posix信号或 		Windows句柄激发以及定时器到期等。<br />本单元介绍ACE_Event_Handler、Timer、ACE_Reactor等类的使用，并使用该框架构建一个简易的多人聊天室应用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>Task</strong><strong>框架</strong><br />ACE 		Task框架提供了强大而可扩展的面向对象并发能力，如在基于对象的上下文(context)中派生线程，以及在执行不同线程中的对象之间传递消息和对消息进行排队。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>Acceptor-Connector</strong><strong>框架</strong><br />ACE  		 Acceptor-Connector框架实现了Acceptor-Connector模式，这种模式通过解除：1，网络化应用中相互协作的对等服务的连 接和初始化所需的活动、2，以及它们一旦连接和初始化后所执行的处理的耦合，增强了软件复用和可扩展性。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>Proactor</strong><strong>框架</strong><br />Proactor框架引入异步I/O机制，既保留了Reactor框架的事件多路分离，避免多线程的开销，同时还缓和了反应式的同步I/O的瓶颈效应。 				</p> 	</li></ul> 	<h2>Module07 	- 数据库开发</h2> 	<p>       数据库作为服务器端应用数据持久化的最重要的部件，在服务器端应用开发中占有非常重要的地位。本模块主要针对Oracle 	10g和MySQL 	5.1两种关系型数据库管理系统。本模块包含以下内容：</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>SQL</strong><strong>语言</strong><br />详细介绍DML、DDL语句的语法和使用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>Oracle 		PL/SQL</strong><br />全面介绍Oracle 		PL/SQL语法，以及使用PL/SQL编写存储过程、函数、触发器。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>MySQL</strong><strong>存储过程</strong><br />编写MySQL存储过程、函数、触发器。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>C++ 		OTL</strong><br />OTL：Oracle、ODBC 		and DB2-CLI Template 		Library。通过OTL，可以方便、高效的与各类主流的关系型数据库如DB2、Oracle、Infomix、Sybase、MySQL等通信。 				</p> 	</li></ul> 	<h2>Module08 	- 项目实战</h2> 	<p>       项目实战可选以下项目之一：</p> 	<ul><li><p style="margin-bottom: 0cm"><strong>项目1</strong><strong>：X-Messenger 		Servers</strong><br />IM（即时通信）服务器群，类似于MSN、QQ等IM的服务器。可以基于Boost.asio或ACE实现。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>项目2</strong><strong>：X-Messenger 		Client</strong><br />IM（即时通信）客户端软件，类似于MSN、QQ等IM的工具。实现Contacts管理、P2P文件传输、P2P一对一文本聊天、群聊等现代IM客户端功能，可以基于Boost.asio或ACE实现。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>项目3</strong><strong>：X-Crawler</strong><br />一个网络爬虫，即搜索引擎的前端，负责收集网络上的数据（网页内容、解析URL）供搜索引擎使用。 				</p> 		</li><li><p style="margin-bottom: 0cm"><strong>其他项目</strong>，可由学员自行定义。 				</p> 	</li></ul> 	<h2>课程资源</h2> 	<p>       可获取的课程资源见：<a href="http://www.xuanyuan-soft.cn/zh/personal/resources">教学资源</a>。</p> </div> <p><a href="http://xuanyuan-soft.cn/">http://xuanyuan-soft.cn</a></p></div></div><img src ="http://www.cppblog.com/athxy/aggbug/197585.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2013-01-27 14:41 <a href="http://www.cppblog.com/athxy/archive/2013/01/27/197585.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux高性能网络编程</title><link>http://www.cppblog.com/athxy/archive/2012/11/06/194717.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Tue, 06 Nov 2012 08:36:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2012/11/06/194717.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/194717.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2012/11/06/194717.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/194717.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/194717.html</trackback:ping><description><![CDATA[<div><div style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><h1>Linux高性能网络编程</h1></div><h2>一、课程目标</h2><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">昆山轩辕高端IT培训本次课程深入讲解Linux下的socket编程，并以此为基础，着重讨论如何提高网络服务端应用的性能，通过本次课程的学习，学员将收获以下方面的成果：</p><ul style="margin: 0px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">熟练使用socket系列函数进行网络编程；</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">深刻理解服务端应用的性能要求；</li><li style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">利用Linux提供的各种机制，有效地解决服务端应用的性能瓶颈。</li></ul><h2>二、参训要求</h2><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">参加本次课程的学员须具备以下能力：</p><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">了解TCP/IP协议，有网络编程概念。</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">本次课程使用<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">&nbsp;C语言</strong>&nbsp;教学，所以学员需拥有较好的C语言基础；</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">能熟练使用常用的Linux命令；</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">能熟练使用gcc、gdb、熟练撰写makefile；</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">最好熟练使用vi、emacs等文本编辑器其中的一种。</li></ul><h2>三、课程实践环境</h2><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">操作系统：GNU/Linux 2.6+（建议使用Redhat AS 5+或Ubuntu、Fedora）</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">编译器：GCC v4.1+、GDB v7.0+</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">可选IDE：Eclipse CDT</li></ul><h2>四、课程大纲</h2><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">本次课程由以下几个部分构成：</p><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">1、POSIX</span>&nbsp;Thread - 多线程</h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">线程管理<ul style="margin: 0px 0px 0px 25px; padding: 5px 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; list-style-image: none; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">线程创建：pthread_create()</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">线程终止：pthread_exit()</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">线程连接和分离：join and detach</li></ul></li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">线程同步机制<ul style="margin: 0px 0px 0px 25px; padding: 5px 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; list-style-image: none; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">互斥体：mutex</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">读写锁：read-write lock</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">条件变量：condition variable</li></ul></li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">线程属性控制</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">mutex属性控制</li></ul><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">2、Socket</span>&nbsp;简介</h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">Socket地址数据结构：struct sockaddr，struct sockaddr_in</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">字节序以及字节序操作：ntohl(), ntohs(), htonl(), htons()</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">Internet地址操作：inet_aton(), inet_addr(), and inet_ntoa(), inet_pton(), inet_ntop()</li></ul><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">3、TCP</span>&nbsp;Socket</h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">socket()：创建socket</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">bind()：绑定地址</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">listen()：开始侦听</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">accept()：接受来自客户端的连接</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">connect()：连接到服务器</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">getsockname()和getpeername()：获取本地和对端地址</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">I/O 操作：read(), write()</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">更高效的I/O 操作：readv(), writev()</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">TCP Server编程步骤</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">TCP Server v1：迭代式Echo Server</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">TCP Server v2：多进程并发式Echo Server，使用fork()和exec*()</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">TCP Server v3：多线程并发式Echo Server，使用pthread</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">TCP Client编程步骤</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">TCP Client：Echo Client</li></ul><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">4、UDP</span>&nbsp;Socket</h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">recvfrom()和sendto()：收发UDP数据报</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">UDP Echo Server</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">UDP Echo Client</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">组播(Multicast)和广播(Broadcast)</li></ul><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">5、Socket</span>&nbsp;Options和 IP Options</h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">常用的Socket Options</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">常用的IP Options</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">Socket选项和IP选项对网络应用的影响</li></ul><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">6、I/O多路复用：构建反应式(Reactive)网络应用</span></h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">UNIX I/O多路复用机制概要</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">为什么I/O 多路复用对于网络应用很重要</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">I/O 多路复用与多线程（反应式模型和并发模型）</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">select / poll</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">在TCP Server和UDP Server中使用select和poll</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">Linux特有I/O 多路复用机制：Event poll (epoll)</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">在TCP Server和UDP Server中使用epoll</li></ul><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">7、异步I/O：构建前摄式(Proactive)网络应用</span></h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">相关概念：同步I/O和异步I/O、Proactor模式</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">异步I/O 是如何提高I/O 性能的</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">异步I/O系列操作</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">使用异步I/O的机制构建TCP Server</li></ul><h3>8、高性能网络编程讨论</h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">考究高性能网络编程中应该遵循的原则，讨论并发、同步、事件多路分离等机制的适用场合</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">网络应用的瓶颈何在</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">事件多路分离 vs 一连接一线程 (Event demultiplexing vs One thread per connection)</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">同步I/O vs 异步I/O (Synchronous I/O vs Asynchronous I/O)</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">如何适当地使用多线程</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">什么时候需要多个 事件多路分离线程</li></ul><h3>9、应用层协议定义与实现</h3><ul style="margin: 0px 0px 15px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">为什么要自定义应用层协议</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">定义应用层协议 (以XMMEP协议为例)</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; ">用C++实现自定义的协议 (以XMMEP协议为例)</li></ul><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">注：XMMEP为X-Messenger Message Exchanging Protocol</p><h2>六、课程资源</h2><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可获取的课程资源见：<a href="http://www.xuanyuan-soft.cn/personal/resources" title="教学资源" style="margin: 0px; padding: 0px; border: 0px; outline: none; font-size: 13px; background-color: transparent; text-decoration: none; color: #009d93; background-position: initial initial; background-repeat: initial initial; ">教学资源</a>。<br /></p></div><div><div style="margin: 0px; padding: 0px; color: #555555; font-family: simsun; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; ">http://www.xuanyuan-soft.cn</div><div style="margin: 0px; padding: 0px; color: #555555; font-family: simsun; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; ">Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Q：570508473</div><div style="margin: 0px; padding: 0px; color: #555555; font-family: simsun; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; ">电 &nbsp; &nbsp; &nbsp; &nbsp;话：0512-55253348</div><div style="margin: 0px; padding: 0px; color: #555555; font-family: simsun; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; ">邮 &nbsp; &nbsp; &nbsp; &nbsp;箱：athzhang@gmail.com</div><div><div style="margin: 0px; padding: 0px; color: #555555; font-family: simsun; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; ">昆山轩辕软件技术有限公司</div><div style="margin: 0px; padding: 0px; color: #555555; font-family: simsun; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; ">昆山苇城南路1666号清华科技园创新大厦230室</div></div></div><img src ="http://www.cppblog.com/athxy/aggbug/194717.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2012-11-06 16:36 <a href="http://www.cppblog.com/athxy/archive/2012/11/06/194717.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ACE高性能网络编程</title><link>http://www.cppblog.com/athxy/archive/2012/08/29/188637.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Wed, 29 Aug 2012 07:00:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2012/08/29/188637.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/188637.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2012/08/29/188637.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/188637.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/188637.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 昆山轩辕高端IT培训---ACE高性能网络编程一、课程目标本次课程针对使用ACE工具包进行高性能网络应用开发，通过本次课程的学习，学员将具备以下能力：了解ACE的架构和组件；理解现代操作系统线程模型、并发以及同步机制；熟练使用ACE线程管理和同步机制接口开发并发应用；熟练使用ACE基本的IPC SAP接口，如SOCK_Stream、SOCK_Dgram等；深刻理解现代操作系统中事件多路分离和分派机...&nbsp;&nbsp;<a href='http://www.cppblog.com/athxy/archive/2012/08/29/188637.html'>阅读全文</a><img src ="http://www.cppblog.com/athxy/aggbug/188637.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2012-08-29 15:00 <a href="http://www.cppblog.com/athxy/archive/2012/08/29/188637.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>轩辕Linux C++开放实验室</title><link>http://www.cppblog.com/athxy/archive/2012/08/24/188131.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Fri, 24 Aug 2012 06:21:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2012/08/24/188131.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/188131.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2012/08/24/188131.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/188131.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/188131.html</trackback:ping><description><![CDATA[<div><h3> 	简介</h3> <p> 	 为方便广大Linux软件开发爱好者，轩辕高端IT培训中心于2009年10月设立了Linux开放实验室，轩辕Linux开放实验室提供了完整的 Linux软件开发环境，包括：Ubuntu Linux 10.04  Server、C/C++（GCC、GDB）、make、Java、Python、Perl、C++ Boost、C++ ACE、C++  OTL、Oracle、DB2、MySQL、Tomcat...，囊括了网络、多线程、数据库等服务器端软件开发的各个方面。</p>    <h3> 	Linux开放实验室典型用途</h3> <ul><li> 		熟悉Linux操作系统，如系统命令、Shell编程、vi等编辑器；</li><li> 		C++语言的学习与软件开发，包括基于Boost和ACE的软件开发；</li><li> 		C++数据库开发，OTL；</li><li> 		Java语言的学习与软件开发；</li><li> 		Java数据库开发，jdbc；</li><li> 		Python、Perl等脚本语言的学习与软件开发；</li><li> 		更多您能发掘到的用途...</li></ul> <h3> 	开发环境</h3> <ul><li> 		操作系统：Ubuntu Linux 10.04 Server；</li><li> 		文本编辑器：vim、emacs、nano</li><li> 		C/C++：GCC工具链（g++/gcc 4.4.3、gdb 7.1）、GNU make 3.8.1、GNU autotools 2.59等；</li><li> 		C++第三方库：Boost 1.43、ACE 5.6.3、OTL 4.0；</li><li> 		Java：Java se 6（Openjdk6）；</li><li> 		Jdbc：Oracle ojdbc14、MySQL mysql-connector-java-5.0.8；</li><li> 		数据库：<strong>Oracle</strong> 10g XE、<strong>DB2</strong> Express-C 9.7、<strong>MySQL</strong> 5.1.41；</li><li> 		Python 2.6.5、Perl 5.10.1；</li><li> 		版本控制：CVS 1.12.13</li><li> 		...</li></ul> <h3> 	实验室面向的人群</h3> <ul><li> 		所有能通过互联网登录到实验室服务器的朋友。</li></ul></div><a href="http://www.xuanyuan-soft.cn/zh/lab/registration"><div><ul><li></li></ul></div><div>http://www.xuanyuan-soft.cn/zh/lab/registration</div></a><div></div><img src ="http://www.cppblog.com/athxy/aggbug/188131.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2012-08-24 14:21 <a href="http://www.cppblog.com/athxy/archive/2012/08/24/188131.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Boost高性能网络编程</title><link>http://www.cppblog.com/athxy/archive/2012/01/27/164567.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Fri, 27 Jan 2012 01:28:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2012/01/27/164567.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/164567.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2012/01/27/164567.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/164567.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/164567.html</trackback:ping><description><![CDATA[<div><div id="rt-mainbody"> 		                                 <div> 	<div> 		 				<div><h1><a href="http://www.xuanyuan-soft.cn">Boost高性能网络编程</a></h1>		</div> 		 		 		 		 				 		 		 		<h2> 	一、课程目标</h2> <p> 	本次课程围绕高性能网络编程这一主题，从众多的Boost类库中挑选出Boost.Asio、Boost.Thread以及其它配套的实用库，作为主要学习的内容，通过本次课程的学习，学员将具备以下能力：</p> <ul><li> 		掌握智能指针、高阶函数对象、对象序列化/反序列化等类库的使用；</li><li> 		理解现代操作系统线程模型、并发以及同步机制；</li><li> 		熟练使用Boost.Thread线程管理和同步机制接口开发并发应用；</li><li> 		深刻理解现代操作系统中事件多路分离和分派机制如select、epoll等、了解异步I/O以及完成事件的分派；</li><li> 		熟练使用Boost.Asio构建稳定、高效和灵活的网络应用。</li></ul><h2> 	四、课程大纲</h2> <p> 	本次课程由以下几个部分构成：</p> <h3><span> 	1、Boost.Serialization</span> - 序列化</h3> <ul><li> 		基本类型和自定义类型的序列化；</li><li> 		数组、指针和智能指针的序列化；</li><li> 		STL容器、std::string的序列化；</li><li> 		识别类的版本；</li><li> 		XML格式的archive；</li><li> 		二进制格式的archive。</li></ul> <h3><span> 	2、Boost.Smart_Ptr</span> - 智能指针</h3> <ul><li> 		回顾std::auto_ptr&lt;&gt;；</li><li> 		无Copyable 语义的scoped_ptr&lt;&gt;；</li><li> 		shared_ptr&lt;&gt;；</li><li> 		weak_ptr&lt;&gt;；</li><li> 		enable_shared_from_this&lt;&gt;；</li></ul> <h3><span> 	3、Boost.Bind</span> and Boost.Function- 函数对象相关</h3> <ul><li> 		什么是函数对象？</li><li> 		回顾std::bind1st()、std::bind2nd()、std::mem_fun()、std::ptr_fun()等适配器；</li><li> 		Boost bind()；</li><li> 		Boost Function；</li><li> 		Boost ref()。</li></ul> <h3><span> 	4、Boost.Signals2</span> - 实现回调机制</h3> <ul><li> 		Boost Signal2：线程安全的Signal-Slot机制 (Publishers &#8594; Signals/Subscribers &#8594; Slots)，即Observer模式的实现；</li><li> 		简单的回调；</li><li> 		多个Slot回调；</li><li> 		管理Connections；</li><li> 		一些示例。</li></ul> <h3> 	5、一些实用类库</h3> <ul><li> 		Boost.Property_Tree；</li><li> 		Boost.Format；</li></ul> <h3><span> 	6、Boost.Thread</span> - 多线程</h3> <ul><li> 		线程与进程之区别；</li><li> 		用户线程与内核线程；</li><li> 		不同操作系统中的线程模型；</li><li> 		线程管理：线程创建、中断、分离/连接等；</li><li> 		同步机制：Mutex、Lock、Condition_variable、TSS等。</li></ul> <h3><span> 	7、Boost.Asio</span> - 网络编程</h3> <p> 	Boost.Asio库，通过对各类操作系统原生的socket API以及事件多路分离、异步I/O API的封装，构成了一个性能优秀、可移植性高、便于编程的网络编程框架，使复杂的网络编程任务变得简单、安全、并且高效。</p> <ul><li> 		Asio相关概念：同步I/O和异步I/O、Proactor模式、Asio和线程；</li><li> 		Linux 下 I/O事件多路分离机制：select、epoll；</li><li> 		TCP同步I/O Server/Client编程示例；</li><li> 		UDP同步I/O Server/Client编程示例；</li><li> 		TCP异步I/O Server/Client编程示例；</li><li> 		UDP异步I/O Server/Client编程示例；</li><li> 		Timer - 定时器；</li><li> 		Asio核心接口介绍。</li></ul> <h3> 	8、高性能网络编程讨论</h3> <ul><li> 		考究高性能网络编程中应该遵循的原则，讨论并发、同步、事件多路分离等机制的适用场合。</li><li> 		网络应用的瓶颈在何处？</li><li> 		事件多路分离 vs 一连接一线程 (Event demultiplexing vs One thread per connection)；</li><li> 		同步I/O vs 异步I/O (Synchronous I/O vs Asynchronous I/O)；</li><li> 		如何适当地使用多线程？</li><li> 		什么时候需要多个 事件多路分离线程？</li></ul> <h3> 	9、应用层协议定义与实现</h3> <ul><li> 		为什么要自定义应用层协议？</li><li> 		定义应用层协议 (以XMMEP协议为例)；</li><li> 		用C++实现自定义的协议 (以XMMEP协议为例)。</li></ul> <p> 	注：XMMEP为X-Messenger Message Exchanging Protocol。</p><h2> 	六、课程资源</h2> <p> 	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可获取的课程资源见：<a href="http://www.xuanyuan-soft.cn/zh/personal/resources" title="教学资源">教学资源</a>。</p>   					</div> </div>  		                            </div></div><img src ="http://www.cppblog.com/athxy/aggbug/164567.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2012-01-27 09:28 <a href="http://www.cppblog.com/athxy/archive/2012/01/27/164567.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C++ Boost </title><link>http://www.cppblog.com/athxy/archive/2010/11/01/131957.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Mon, 01 Nov 2010 04:04:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2010/11/01/131957.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/131957.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2010/11/01/131957.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/131957.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/131957.html</trackback:ping><description><![CDATA[<div> 	 	 	   <h3><spacer type="BLOCK" align="RIGHT" width="19" height="16"><spacer type="BLOCK" align="RIGHT" width="19" height="16"><span style="font-weight: normal"><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">Boost</span></span><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">培训</span><span style="font-weight: normal"><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">(</span></span><span style="font-weight: normal">项目班</span>)</spacer></spacer></h3> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; ">        昆山轩辕高端IT培训,C++ Boost现场项目班课程，通过对Boost几个实用组件的学习，掌握高吞吐量、低延迟的服务器端应用开发的有效知识，且通过最终项目的历练，学员将对高性能服务器端应用开发有一个清晰的认识，并能熟练使用Boost相关的类库来开发服务器端应用。</p> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; ">          该课程的项目实战部分时间，主要讲解服务器端应用的架构、设计，以及项目实现技术的运用。</p> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> <span style="background: transparent">上课方式</span></p> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; ">        现场班：全日制脱产学习，历时1个月,每月开班。</p> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; ">          远程班：远程视频学习，学习时间自定,随时开课。</p> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 课程大纲</p> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; ">        C++ Boost强化班课程由以下模块组成：</p> <h3> <span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">1&nbsp;- C++ Boost</span></h3> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Boost是由C++标准委员会成员发起、众多C++业界高人参与设计并实现的一个涉及面广、质量高且业已广泛使用的C++标准后备库，其中 TR1已经被纳入C++0x标准库。不论从风格和内容组织上讲，都可以认为Boost项目是C++标准库的延伸。截止到boost 1.43版本，boost项目拥有大约100个用途广泛的实用库。这部分课程将介绍服务器端开发所需要的几个组件：</p> <ul> 	<li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">容器与数据结构</span></span></strong><br />介绍boost.any, 	boost.tuple, boost.array, boost.unordered(基于hash 	table，即hash_map和hash_set)等组件。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">字符串算法和文字处理</span></span></strong><br />介绍boost.lexical_cast, 	boost.format, boost.string_algo等组件。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">正则表达式</span></span></strong><br />正则表达式语法（perl正则表达式语法）的讲解，boost.regex库的使用。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">智能指针</span></span></strong><br />详细介绍shared_ptr、scoped_ptr、weak_ptr等智能指针的使用。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">函数对象相关</span></span></strong><br />详细介绍boost.bind, 	boost.mem_fn, boost.function, boost.ref, boost.lambda等组件。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="font-weight: normal"><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">Boost.Signals2 	- </span></span></strong><strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">实现回调机制</span></span></strong><br />Boost 	Signal2：线程安全的Signal-Slot机制 	(Publishers 	&#8594; Signals/Subscribers &#8594; Slots)，即Observer模式的实现；</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">序列化</span></span></strong><br />通过实例熟悉boost.serialization库的用法。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">日期与时间</span></span></strong><br />boost.date_time库的详细介绍。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">多线程</span></span></strong><br />作为服务器端开发必不可少的内容之一：多线程支持，boost提供了一个跨平台的线程库：boost.thread。<br />本单元的课程详细介绍boost.thread。</p> 	</li><li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">网络编程</span></span></strong><br />boost.asio库，通过对各类操作系统原生的socket 	API以及事件多路分离、异步I/O 	API的封装，构成了一个性能优秀、便于编程的网络编程框架，使复杂的网络编程任务变得简单、安全、并且高效。<br />本单元的课程通过一系列的示例来展示：通过asio来构建TCP同步/异步服务器和客户端、UDP同步/异步服务器和客户端应用，从而熟悉asio的接口和编程套路。</p> </li></ul> <h3> <span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">2&nbsp;- </span>项目实战</h3> <p style="margin-bottom: 0.4cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 课程结束后，学员需基于C++、Boost实现以下项目：</p> <ul> 	<li><p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> 	<strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">项目</span></span></strong><strong><span style="font-weight: normal"><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">1</span></span></strong><strong><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span style="font-weight: normal">：</span></span></strong><strong><span style="font-weight: normal"><span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; ">X-Messenger 	Servers</span></span></strong><br />IM（即时通信）服务器群，类似于MSN、QQ等IM的服务器。可以基于Boost.asio或ACE实现。</p> </li></ul> <h2> 课程资源</h2> <p style="margin-bottom: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; line-height: 0.53cm; background-position: initial initial; background-repeat: initial initial; "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可获取的课程资源见：<a href="http://www.xuanyuan-soft.cn/zh/personal/resources"><span style="text-decoration: none"><span style="background: transparent">教学资源</span></span></a>。</p> <p><a href="http://xuanyuan-soft.cn/">http://xuanyuan-soft.cn</a></p></div><img src ="http://www.cppblog.com/athxy/aggbug/131957.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2010-11-01 12:04 <a href="http://www.cppblog.com/athxy/archive/2010/11/01/131957.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C++ ACE项目班</title><link>http://www.cppblog.com/athxy/archive/2010/07/22/121043.html</link><dc:creator>athxy</dc:creator><author>athxy</author><pubDate>Thu, 22 Jul 2010 09:04:00 GMT</pubDate><guid>http://www.cppblog.com/athxy/archive/2010/07/22/121043.html</guid><wfw:comment>http://www.cppblog.com/athxy/comments/121043.html</wfw:comment><comments>http://www.cppblog.com/athxy/archive/2010/07/22/121043.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/athxy/comments/commentRss/121043.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/athxy/services/trackbacks/121043.html</trackback:ping><description><![CDATA[<div><div style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><h1>C++ ACE 项目班</h1></div><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 昆山轩辕高端IT培训,C++ ACE现场项目班课程，通过对ACE几个主要的框架的学习，掌握高吞吐量、低延迟的服务器端应用开发的有效知识，且通过最终项目的历练，学员将对高性能服务器端应用开发有一个清晰的认识，并能熟练使用ACE相关的框架来开发服务器端应用。</p><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 该课程的项目实战部分时间，主要讲解服务器端应用的架构、设计，以及项目实现技术的运用。</p><h2>上课方式</h2><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 现场班：全日制脱产学习，历时1个月。学费￥4,000元。</p><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 远程班：远程视频学习，学费3000元<br /></p><h2>课程大纲</h2><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C++ ACE现场项目班的课程由以下部分组成：</p><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">1</span>&nbsp;- C++ ACE</h3><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ACE是一个被广泛使用、设计优雅、高性能的C++通信框架（不仅仅是通信框架），其设计及实现被众多开源框架所借鉴。是构建稳定、高性能、高吞吐量、跨平台的服务器端程序的优秀框架。本模块的课程包含以下几个方面：&nbsp;</p><ul style="margin: 0px 0px 15px 20px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">ACE基础网络I/O相关对象</strong><br />详细介绍ACE_SOCK、ACE_SOCK_Acceptor、ACE_SOCK_Connector、ACE_INET_Addr等class的使用。</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">Reactor框架</strong><br />ACE Reactor框架简化事件驱动程序的开发，而事件驱动是很多网络化应用的基本特征，这些应用常见的事件源包括I/O事件、Posix信号或 Windows句柄激发以及定时器到期等。<br />本单元介绍ACE_Event_Handler、Timer、ACE_Reactor等类的使用，并使用该框架构建一个简易的多人聊天室应用。</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">Service Configuration框架</strong><br />Service Configuration框架允许应用在运行期重新配置其服务（包括静态服务和动态服务），而不必修改、重新编译或重新连接程序自身，或是关闭和重启应用等。</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">Task框架</strong><br />ACE Task框架提供了强大而可扩展的面向对象并发能力，如在基于对象的上下文(context)中派生线程，以及在执行不同线程中的对象之间传递消息和对消息进行排队。</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">Acceptor-Connector框架</strong><br />ACE Acceptor-Connector框架实现了Acceptor-Connector模式，这种模式通过解除：1，网络化应用中相互协作的对等服务的连接和初始化所需的活动、2，以及它们一旦连接和初始化后所执行的处理的耦合，增强了软件复用和可扩展性。</li><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">Proactor框架</strong><br />Proactor框架引入异步I/O机制，既保留了Reactor框架的事件多路分离，避免多线程的开销，同时还缓和了反应式的同步I/O的瓶颈效应。</li></ul><h3><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">2</span>&nbsp;- 项目实战</h3><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 课程结束后，学员需基于C++、ACE实现以下项目：</p><ul style="margin: 0px 0px 15px 20px; padding: 0px 0px 0px 5px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; list-style-image: none; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "><li style="margin: 0px 0px 3px; padding: 0px 0px 0px 15px; border: 0px; outline: 0px; font-size: 13px; background-image: url(http://www.xuanyuan-soft.cn/templates/rt_quantive_j15/images/typography/bullet6.png); background-color: transparent; list-style: none; background-position: 0px 5px; background-repeat: no-repeat no-repeat; "><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">项目1：X-Messenger Servers</strong><br />IM（即时通信）服务器群，类似于MSN、QQ等IM的服务器。基于ACE实现。</li></ul><h2>课程资源</h2><p style="margin: 0px 0px 15px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; background-color: #ffffff; color: #555555; font-family: Helvetica, Arial, FreeSans, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可获取的课程资源见：<a href="http://www.xuanyuan-soft.cn/zh/personal/resources" title="教学资源" style="margin: 0px; padding: 0px; border: 0px; outline: none; font-size: 13px; background-color: transparent; text-decoration: none; color: #009d93; background-position: initial initial; background-repeat: initial initial; ">教学资源</a>。</p></div><br /><p><a href="http://www.xuanyuan-soft.cn/">http://www.xuanyuan-soft.cn</a><br />QQ:570508473</p><img src ="http://www.cppblog.com/athxy/aggbug/121043.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/athxy/" target="_blank">athxy</a> 2010-07-22 17:04 <a href="http://www.cppblog.com/athxy/archive/2010/07/22/121043.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>