mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
add /rspeers/setVisState JSON API
This commit is contained in:
parent
f122aec41e
commit
18c5ab8913
@ -566,7 +566,16 @@ public:
|
||||
*/
|
||||
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 setProxyServer(const uint32_t type, const std::string &addr, const uint16_t port) = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user