Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能多提供一下demo代码,比如演示怎么用协程api实现网络程序 #1

Closed
xwpcom opened this issue Nov 26, 2019 · 4 comments

Comments

@xwpcom
Copy link

xwpcom commented Nov 26, 2019

比如实现http下载网页或文件

谢谢!

@idealvin
Copy link
Owner

协程提供的网络 api 用法跟普通的 socket api 几乎一样,pdf 参考文档里有个简单的 tcp server/client 示例,不能满足你的需求吗?

@idealvin
Copy link
Owner

可以参考 base/rpc 的实现代码

@xwpcom
Copy link
Author

xwpcom commented Nov 26, 2019

测试了文档中的go(client_fun)
效果很好,非常感谢

@namzin
Copy link

namzin commented Nov 30, 2019

code

idealvin pushed a commit that referenced this issue Jan 6, 2020
idealvin pushed a commit that referenced this issue Jun 14, 2021
Merge pull request #161 from qixuxiang/fix-cmake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants