mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 02:25:34 -04:00
Initial work on Broadcast Domain Discovery
Discover peers on the same broadcast domain/LAN Implements own node announcement Implements others announcement listening Implements API to get notifiend when other nodes get discovered Implements API to get discovered nodes Add discovered peer locator to rsPeers if it is already friend Yet a bunch of things to do to take full advantage of this new implementation
This commit is contained in:
parent
276328dd91
commit
7b38c1c75a
15 changed files with 583 additions and 70 deletions
|
@ -45,11 +45,14 @@ typedef int64_t rstime_t;
|
|||
// Do we really need this? Our names have rs prefix to avoid pollution already!
|
||||
namespace rstime {
|
||||
|
||||
/*!
|
||||
* \brief This is a cross-system definition of usleep, which accepts any 32 bits number of micro-seconds.
|
||||
*/
|
||||
RS_DEPRECATED_FOR("std::this_thread::sleep_for")
|
||||
int rs_usleep(uint32_t micro_seconds);
|
||||
/**
|
||||
* @deprecated { std::this_thread::sleep_for or
|
||||
* std::this_thread::sleep_until instead }
|
||||
* @brief This is a cross-system definition of usleep, which accepts any
|
||||
* 32 bits number of micro-seconds.
|
||||
*/
|
||||
RS_DEPRECATED_FOR("std::this_thread::sleep_for")
|
||||
int rs_usleep(uint32_t micro_seconds);
|
||||
|
||||
/* Use this class to measure and display time duration of a given environment:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue