lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
981 stars 388 forks source link

Bind the UDP receive port to the desired address. #239

Closed sammy-tri closed 6 years ago

sammy-tri commented 6 years ago

Binding to INADDR_ANY causes us to receive datagrams destined for our port to any address, which can be problematic if, for example, there are different LCM publishers using different multicast addresses and the same port.

sammy-tri commented 6 years ago

Fixes #186.

ashuang commented 6 years ago

thanks for the patch!