Thank you.
async_write -> aync_read .... right?
Post by Amir Taakiahh here it is
http://blip.tv/boostcon/thinking-asynchronously-designing-applications-with-boost-asio-5250947
------------------------------
*Sent:* Saturday, January 12, 2013 2:15 PM
*Subject:* Re: [asio-users] What is "passing the buck" pattern
pass the buck invoke handlers after they complete.
there's a really good video by chris kohlhoff from boost con about this (i
think it was on a random video site like blip.tv in 2009 boostcon) but i
couldn't find it.
https://docs.google.com/viewer?a=v&q=cache:Y2wCe7bcOPIJ:https://raw.github.com/boostcon/2011_presentations/master/mon/thinking_asynchronously.pdf+asio+pass+the+buck&hl=en&gl=uk&pid=bl&srcid=ADGEESgMOTHJsGA3YhqIES8nrYC1p2cUlH0POO-4u0B53Td0Qy_FnN9Grq5yT_zwkJU3NVM2rzouIa3M9SPxW8_ub0rpJ5cHgEVqqARzrZY_ffv-jrD3hDZ1RFtNcS65t1MMUeFmwXda&sig=AHIEtbS4BfPWy-bJa5A0rmWmjx0akLPAtg
------------------------------
*Sent:* Saturday, January 12, 2013 5:30 AM
*Subject:* [asio-users] What is "passing the buck" pattern
Hi all,
I have read the ppt from Chris on the boostcon 2011. He mentioned a
pattern called "passing the buck" and said that "No reference counting; All
memory committed front up; Possibility of zero allocations in steady state"
If I have a connection class with 2 sockets inherited from
enable_shared_from<>, which is designed to be a proxy application.
1 .So how to apply this patter?
2. And since there are std::shared_ptr<> and std::bind out there, how can
it be zero allocations?
At last, are there some samples that demonstrate this pattern?
Thanks you guys
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET <http://asp.net/>, C#
2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
asio-users mailing list
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
asio-users mailing list
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio