mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 20:12:29 -04:00
Net, Dht and Configuration changes.
* set PortForward in NetStateBox when the Network has been setup. * add GeneralConfig to rsConfig external interface. * enabled ADVANCED configuration option. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4500 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a1e112934d
commit
31ec7a074b
7 changed files with 96 additions and 9 deletions
|
@ -31,12 +31,18 @@
|
|||
#include "pqi/p3peermgr.h"
|
||||
#include "pqi/p3linkmgr.h"
|
||||
#include "pqi/p3netmgr.h"
|
||||
#include "pqi/p3cfgmgr.h"
|
||||
|
||||
|
||||
#define RS_CONFIG_ADVANCED_STRING "AdvMode"
|
||||
|
||||
|
||||
|
||||
class p3ServerConfig: public RsServerConfig
|
||||
{
|
||||
public:
|
||||
|
||||
p3ServerConfig(p3PeerMgr *peerMgr, p3LinkMgr *linkMgr, p3NetMgr *netMgr);
|
||||
p3ServerConfig(p3PeerMgr *peerMgr, p3LinkMgr *linkMgr, p3NetMgr *netMgr, p3GeneralConfig *genCfg);
|
||||
virtual ~p3ServerConfig();
|
||||
|
||||
/* From RsIface::RsConfig */
|
||||
|
@ -70,13 +76,19 @@ virtual uint32_t getNatTypeMode();
|
|||
virtual uint32_t getNatHoleMode();
|
||||
virtual uint32_t getConnectModes();
|
||||
|
||||
virtual bool getConfigurationOption(uint32_t key, std::string &opt);
|
||||
virtual bool setConfigurationOption(uint32_t key, const std::string &opt);
|
||||
|
||||
/********************* ABOVE is RsConfig Interface *******/
|
||||
|
||||
private:
|
||||
|
||||
bool findConfigurationOption(uint32_t key, std::string &keystr);
|
||||
|
||||
p3PeerMgr *mPeerMgr;
|
||||
p3LinkMgr *mLinkMgr;
|
||||
p3NetMgr *mNetMgr;
|
||||
p3GeneralConfig *mGeneralConfig;
|
||||
|
||||
RsMutex configMtx;
|
||||
uint32_t mUserLevel; // store last one... will later be a config Item too.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue