C++ Boost Asio 简单聊天教程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7930527/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C++ Boost Asio Simple Chat Tutorial
提问by Kia.celever
I've been reading Boost Asio
's Tutorials (Official website). But I found them a pain in the neck! Is There a simpletutorial on asio?! I mean, A simple client-server chat. NO THREADS!!Thank you!
我一直在阅读Boost Asio
的教程(官方网站)。但我发现他们的脖子很痛!有关于asio的简单教程吗?!我的意思是,一个简单的客户端 - 服务器聊天。没有线程!!谢谢!
采纳答案by blaaaaaaah
http://www.boost.org/doc/html/boost_asio/tutorial/tutdaytime1.html
http://www.boost.org/doc/html/boost_asio/tutorial/tutdaytime1.html
Is there anything wrong with the above? That's where I learnt to use Boost::Asio when I used it.
以上有什么问题吗?那就是我在使用 Boost::Asio 时学会使用它的地方。
回答by Takashi
It's not a chat tutorial and it uses threads but this tutorial is fairly simple to follow:
这不是聊天教程,它使用线程,但本教程非常易于遵循:
http://www.gamedev.net/blog/950/entry-2249317-a-guide-to-getting-started-with-boostasio/
http://www.gamedev.net/blog/950/entry-2249317-a-guide-to-getting-started-with-boostasio/
回答by wjl
This blogseems to be by the/an author of the ASIO library and has lots of extra information about it.
这个博客似乎是由 ASIO 库的作者/作者撰写的,并且有很多关于它的额外信息。
For example: boost::asio vs asio, fork/join with asio.