mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-26 15:20:53 -04:00
add /rspeers/setVisState JSON API
This commit is contained in:
parent
f122aec41e
commit
18c5ab8913
1 changed files with 10 additions and 1 deletions
|
@ -566,7 +566,16 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual bool setNetworkMode(const RsPeerId &sslId, uint32_t netMode) = 0;
|
virtual bool setNetworkMode(const RsPeerId &sslId, uint32_t netMode) = 0;
|
||||||
|
|
||||||
virtual bool setVisState(const RsPeerId &ssl_id, uint16_t vs_disc, uint16_t vs_dht) = 0;
|
/**
|
||||||
|
* @brief set DHT and discovery modes
|
||||||
|
* @jsonapi{development}
|
||||||
|
* @param[in] sslId SSL id of the peer, own id is accepted too
|
||||||
|
* @param[in] vsDisc one of RS_VS_DISC_*
|
||||||
|
* @param[in] vsDht one of RS_VS_DHT_*
|
||||||
|
* @return false if error occurred, true otherwise
|
||||||
|
*/
|
||||||
|
virtual bool setVisState( const RsPeerId& sslId,
|
||||||
|
uint16_t vsDisc, uint16_t vsDht ) = 0;
|
||||||
|
|
||||||
virtual bool getProxyServer(const uint32_t type, std::string &addr, uint16_t &port,uint32_t& status_flags) = 0;
|
virtual bool getProxyServer(const uint32_t type, std::string &addr, uint16_t &port,uint32_t& status_flags) = 0;
|
||||||
virtual bool setProxyServer(const uint32_t type, const std::string &addr, const uint16_t port) = 0;
|
virtual bool setProxyServer(const uint32_t type, const std::string &addr, const uint16_t port) = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue