truvorskameikin / udp-discovery-cpp

A small library to add local network discovery feature to your C++ programs with no dependencies
MIT License
60 stars 28 forks source link

Add second socket that will bind to specified address #9

Closed truvorskameikin closed 5 years ago

truvorskameikin commented 5 years ago

Requested in #8.

The binding socket is required to receive broadcasted packets. The second socket is used for sending broadcasts.

G10h4ck commented 5 years ago

With this pull request the test with 3 instances running on the same host is successful :) Some comments inline in the code ;)