udp-discovery-cpp icon indicating copy to clipboard operation
udp-discovery-cpp copied to clipboard

A small library to add local network discovery feature to your C++ programs with no dependencies

Results 5 udp-discovery-cpp issues
Sort by recently updated
recently updated
newest added

Now we use uint32_t as the peerId. Also we use very strange logic to filter and compare discovered peers (see Same method at https://github.com/truvorskameikin/udp-discovery-cpp/blob/master/udp_discovery_peer.hpp#L87) - it uses peer address and...

enhancement

Hello, IsRightTime can set a negative value to to_sleep_until_next_delete_idle, causing the subsequent call to SleepFor to wait for a very long time on windows, and the process getting stuck when...

We can send arbitrary messages over udp to discovered peers. The suggested flow can look like: - generate random message id - send message with generated id to peer using...

enhancement

When a packet is received, packet_index is checked for increments to see if the userdata needs to be updated: https://github.com/truvorskameikin/udp-discovery-cpp/blob/63eda22d3f8a415324d99208011bc4f2b6583a7e/udp_discovery_peer.cpp#L351 But here: https://github.com/truvorskameikin/udp-discovery-cpp/blob/63eda22d3f8a415324d99208011bc4f2b6583a7e/udp_discovery_peer.cpp#L397 packet_index is incremented everytime a packet is...

enhancement

When I ran `./udp-discovery-example both both test1` and the same with `test2` on the same windows computer, they both discovered each other. It worked also when I ran it with...