tower icon indicating copy to clipboard operation
tower copied to clipboard

Question: Multiplexed UDP Client/Server?

Open JRAndreassen opened this issue 3 years ago • 1 comments

I'm trying to find an example on using Tower with a UDP(or ICMP for that matter) multiplexed connection, but not having much luck. Is there a current example somewhere ?

In particular, I need to make a client to issue SNMP requests (Yes I know... SNMP is Dead... Long live SNMP). There are several SNMP frame parses, but no async clients.

I did find an examples for the old version:

Which would be almost perfect, since my implementation would be tagged with ID.

Optimally, I should be able to use Tonic Multiplex, since it has a lot of the features needed already, but there are no facilities for UDP (that I have found)...

If there are no examples, some guidance on which parts needs to be implemented and in what order would be greatly appreciated. I'll be more than happy to share the implementation when it is finished.

JRAndreassen avatar Feb 21 '21 14:02 JRAndreassen

tokio-tower provides a multiplex client: https://github.com/tower-rs/tokio-tower/

Michael-J-Ward avatar Mar 25 '21 21:03 Michael-J-Ward