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

Do you have plan to support UDP protocol? How to modify it for UDP in my project ? Thanks! #319

Open
kevingwang opened this issue Feb 9, 2018 · 2 comments

Comments

@kevingwang
Copy link

Linux distro and version? x86 or ARM? 32-bit or 64-bit?

Branch (master/cpp11/cpp17) and version of muduo?

Version of cmake, gcc and boost? (If not from distro.)

@chenshuo
Copy link
Owner

chenshuo commented Feb 9, 2018

UDP doesn't need a network library, because one UDP socket can talk to multiple peers.
For UDP server, you can serve many clients with one UDP socket. (Or use SO_REUSEPORT for better scalability.)
For UDP client, you can talk to one or more UDP servers with one UDP socket.
A network library has not much to help you here.
If you need to integrate UDP with muduo's EventLoop, feel free to use a Channel and set the fd to your UDP socket.

@wangwenqiangGitHub
Copy link

如果接收多个udp下发过来的数据,数据量比较大,每个频率在50Hz,如何使用muduo中的线程池处理呢

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