RSS Thinking Asynchronously in C++
哪吒推荐该订阅
原站:http://think-async.blogspot.com/
点击立即订阅,“Thinking Asynchronous...”的内容有更新,哪吒第一时间提醒您
“Thinking Asynchronously in C++”的内容更新
累计:23 篇(自 2008-12-05 起)
更新:约7篇/年,最后更新675 天前
Thinking Asynchronously in C++
[ part 1, part 2, part 3, part 4 ]creating your own error conditionsuser-extensibility in the <system_error> facility is not limited to error codes: error_condition permits the same customisation.why create custom error conditions?to answer this question, let's revisit the distinction between error_code and error_condition:class error_code - represents... (311 天前)
Thinking Asynchronously in C++
[ part 1, part 2, part 3 ]creating your own error codesas i stated in part 1, one of the principles behind the <system_error> facility is user-extensibility. this means that you can use the mechanism just described to define your own error codes.in this section, i'll outline what you need to do. as a basis for a worked example, i will assume you're wri... (311 天前)
Thinking Asynchronously in C++
[ part 1, part 2 ]enumerators as class constantsas we have seen, the <system_error> header defines enum class errc:enum class errc{ address_family_not_supported, address_in_use, ... value_too_large, wrong_protocol_type,};the enumerators of which are placeholders for error_condition constants:std::error_code ec;create_directory("/some/path", ec);if (ec ... (311 天前)
Thinking Asynchronously in C++
[ part 1 ]error_code vs error_conditionof the 1000+ pages of c++0x draft, the casual reader is bound to notice one thing: error_code and error_condition look virtually identical! what's going on? is it a copy/paste error?it's what you do with it that countslet's review the descriptions i gave in part 1:class error_code - represents a specific error value... (311 天前)
Thinking Asynchronously in C++
among the many new library features in c++0x is a little header called <system_error>. it provides a selection of utilities for managing, well, system errors. the principal components defined in the header are:class error_categoryclass error_codeclass error_conditionclass system_errorenum class errci had a hand in the design of this facility, so in thi... (311 天前)
Thinking Asynchronously in C++
asynchronous operations in asio all expect a function object argument, the completion handler, which they invoke when the asynchronous operation completes. the signature of the handler depends on the type of operation. for example, a handler posted using io_service::post() must have the signature:void handler();while an asynchronous wait operation expect... (311 天前)
Thinking Asynchronously in C++
most networking-enabled applications have to deal with timeouts. read or write operations may continue indefinitely, and programs need a way to determine when to tear down connections, resend requests, or take whatever other measures are necessary.asio includes the deadline_timer class for managing timeouts. this class aims to provide a minimal interface... (311 天前)
订阅者 ( 1 )
linker.m.lin
相关订阅源
RSS IT与人性|Src's Blog

it法人,人法地,地法天,天法道,道法自然!

标签: it blog it与人性|srcs web2.0 人性

指数 | 110人订阅  

RSS 中学思政及其他

课程教学 / 中学思政及其他

指数 | 1人订阅  

RSS Thinking by Peter Davidson

ideas and commentary on advertising, branding, marketing, technology and culture

标签: thinking peter davidson

指数 | 1人订阅  

我要反馈