userver-framework / userver

Production-ready C++ Asynchronous Framework with rich functionality
https://userver.tech
Apache License 2.0
2.46k stars 290 forks source link

Is there a UDP multicast socket implementation? #245

Open asmfreak opened 1 year ago

asmfreak commented 1 year ago

I wanted to use userver for a service, requiring UDP multicast messages.

There is a Socket class for low-level communication.

But as far as I can see, there is no methods to join/leave a multicast UDP group. Are such methods planned to be implemented? Maybe they are already implemented, but in a different module?


Internal ticket: EDUPRJ-278

apolukhin commented 1 year ago

Unfortunately, we do not have that functionality yet.

We'd appreciate a PR or if there's a lot of interest in the feature we'll implement it later

nUl1 commented 1 year ago

I guess the only thing missing is the ability to pass an ip_mreq into SetOption, all other capabilities (Bind, RecvSomeFrom) seem to be there.