ZeroCM / zcm

Zero Communications and Marshalling
http://zerocm.github.io/zcm/
GNU Lesser General Public License v2.1
233 stars 67 forks source link

UDP unicast transport #414

Closed enricop closed 1 year ago

enricop commented 1 year ago

Hello, I've modified just a bit the UDP multicast transport to allow unicast communication between two hosts via UDP. This reduces the versatility of the trasnport, however in our use case we prefer to have this kind of communication. image

It would be nice to have the possibility to choose between unicast and multicast through the passed URL at runtime.

thanks for your support, enrico

jbendes commented 1 year ago

This is great! Can you provide an example usage for this? We'll definitely get this merged. This would be a great addition.

jbendes commented 1 year ago

@enricop I've pushed up a branch that builds in this functionality a bit more natively. Can you take a look and see if it does the trick for you? I just copied what you did, but I'm not familiar with unicast, so I'm not sure how to use it haha

jbendes commented 1 year ago

Okay this is now tested. I will be merging it shortly

jbendes commented 1 year ago

So after further testing I don't believe the above code suggestion is correct. I made several more changes on this branch. It's up for pullreq now