ASIO example

Volume II - Advanced Libraries

ASIO example

Postby jeg » Fri Apr 08, 2011 5:52 pm


The boost documentation from is very irritating in the sense that there are rarely examples that cover the common use-cases so that a new user can simply cut-and-paste then modify. Instead, the examples in the docs almost always show some nifty but little used feature having nothign to do with the one use case that covers 90% of everyone's needs. The boost asio examples are this way.

It would be very nice indeed to see a boost asio example that covers the 90% use case that has the following features:

a) async tcp client and thread-pool tcp server

b) hostname lookup with timeout

c) timeout on attempt to connect

d) keep alive heart beat and timeout

e) messaging with a fixed-length header, variable length payload, and checksum

I know that various pieces of this are actually scattered about in the examples, but pulling it all together for a newb can be challenging.

Looking forward to buying the book, hopefully with the above.
Posts: 1
Joined: Wed Apr 06, 2011 8:22 pm

Postby Cuchulainn » Thu Apr 14, 2011 10:10 pm

ASIO will be in our Boost Volume II book.



edit: regarding your question e) do you wish to use Boost CRC, for example on top of the existing CRC algos in the protocols?
User avatar
Posts: 677
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Return to Introduction to the Boost C++ Libraries - Volume II (Demming/Duffy)

Who is online

Users browsing this forum: No registered users and 1 guest