锻炼精神,首先要锻炼肉体
全部博文(104)
分类: C/C++
2015-06-09 10:00:58
Although Boost.Asio started life focused primarily on networking, its concepts of asynchronous I/O have been extended to include other operating system resources such serial ports,file descriptors, and so on.
- Portability. The library should support a range of commonly used operating systems , and provide consistent behaviour across these operating systems.
- 可移植性. 库函数应该支持一系列主流的操作系统,并且基于不同的操作平台上提供一致的操作方法.
- Scalability. The library should facilitate the development of network applications that scale to thousands of concurrent connections. The library implementations for each operating system should use the mechanism that best enable this scalability.
- 可扩展性. 库函数应该为涉及到数以千计的网络连接的网络程序的开发提供便利条件. 在每种型号的操作信共同中,(Boost.Asio) 函数库的实现都应该遵照这样的初衷: 将在该操作系上所编写的程序的可扩展性实现到最大化.
- Efficiency. The library should support techniques such scatter-gather I/O, and allow programs to minimis data copying.
- 有效性. (被设计实现的)Boost.Asio 函数库应该支持: 读写操作的分散-集中式处理和允许程序将数据拷贝最小化这样的技术
- Model concepts from established APIs , such as BSD sockets. The BSD socket API is widely implemented and understood , and is covered in much literature. Other programming languages often use a similar interface for networking APIs. As far as reasonable,Boost.Asio should leverage existing practice.
- (Boost.Asio 函数库中)模型的这一想法均来源于已经制定好了的应用程序接口,像 BSD 系列操作系统中的套接字处理接口函数(API ). BSD 操作系统中的套接字应用程序接口已被广泛的实现并为人所知,且被记录于许多文献内. 其他的编程语言中常编写相似的接口作为网络操作的应用程序编程接口. 只要合理的被使用, Boost.Asio 函数库可以利用已有的实例.(这里我没太看懂.... 是我编的,我编不下去了.....)
- Ease of use. The library should provide a lower entry barrier for new users by taking a toolkit, rather than framework, approach. That is , it should try to minimise the up-front investment in time to just learning a few basic rules and guidelines. After that , a library user should only need to understand the specific functions that are being used.
- 易用性. (Boost.Asio )函数库应该向新手们提供一个有着较低的门槛的工具集,而不是框架或是资料库.正因如此,(Boost.Asio 函数库的设计应该)试图将使用者在前期时间投资最小化,即,让使用者在学习基本规则和参考教程上所花费最少的时间。在此之后,函数库的使用者仅仅需要学习要使用的某些特定方法便可以.