muduo icon indicating copy to clipboard operation
muduo copied to clipboard

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

Open kevingwang opened this issue 8 years ago • 2 comments

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.)

kevingwang avatar Feb 09 '18 06:02 kevingwang

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.

chenshuo avatar Feb 09 '18 18:02 chenshuo

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

wangwenqiangGitHub avatar Sep 14 '21 00:09 wangwenqiangGitHub