mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
suppressed unninitialisez memory reads
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2407 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5acc8411e5
commit
ede337b7d4
@ -40,43 +40,58 @@
|
|||||||
class ForumInfo
|
class ForumInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ForumInfo() {}
|
ForumInfo()
|
||||||
std::string forumId;
|
{
|
||||||
std::wstring forumName;
|
forumFlags = 0 ;
|
||||||
std::wstring forumDesc;
|
subscribeFlags = 0 ;
|
||||||
|
pop = 0 ;
|
||||||
|
lastPost = 0 ;
|
||||||
|
}
|
||||||
|
std::string forumId;
|
||||||
|
std::wstring forumName;
|
||||||
|
std::wstring forumDesc;
|
||||||
|
|
||||||
uint32_t forumFlags;
|
uint32_t forumFlags;
|
||||||
uint32_t subscribeFlags;
|
uint32_t subscribeFlags;
|
||||||
|
|
||||||
uint32_t pop;
|
uint32_t pop;
|
||||||
|
|
||||||
time_t lastPost;
|
time_t lastPost;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ForumMsgInfo
|
class ForumMsgInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ForumMsgInfo() {}
|
ForumMsgInfo()
|
||||||
std::string forumId;
|
{
|
||||||
std::string threadId;
|
msgflags = 0 ;
|
||||||
std::string parentId;
|
ts = childTS = 0 ;
|
||||||
std::string msgId;
|
}
|
||||||
|
std::string forumId;
|
||||||
|
std::string threadId;
|
||||||
|
std::string parentId;
|
||||||
|
std::string msgId;
|
||||||
|
|
||||||
std::string srcId; /* if Authenticated -> signed here */
|
std::string srcId; /* if Authenticated -> signed here */
|
||||||
|
|
||||||
unsigned int msgflags;
|
unsigned int msgflags;
|
||||||
|
|
||||||
std::wstring title;
|
std::wstring title;
|
||||||
std::wstring msg;
|
std::wstring msg;
|
||||||
time_t ts;
|
time_t ts;
|
||||||
time_t childTS;
|
time_t childTS;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ThreadInfoSummary
|
class ThreadInfoSummary
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ThreadInfoSummary() {}
|
ThreadInfoSummary()
|
||||||
|
{
|
||||||
|
msgflags = 0 ;
|
||||||
|
count = 0 ;
|
||||||
|
ts = childTS = 0 ;
|
||||||
|
}
|
||||||
std::string forumId;
|
std::string forumId;
|
||||||
std::string threadId;
|
std::string threadId;
|
||||||
std::string parentId;
|
std::string parentId;
|
||||||
|
@ -131,37 +131,46 @@ std::ostream &operator<<(std::ostream &out, const FileInfo &info);
|
|||||||
class RsConfig
|
class RsConfig
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string ownId;
|
RsConfig()
|
||||||
std::string ownName;
|
{
|
||||||
|
localPort = extPort = 0 ;
|
||||||
|
firewalled = forwardPort = false ;
|
||||||
|
maxDownloadDataRate = maxUploadDataRate = maxIndivDataRate = 0 ;
|
||||||
|
promptAtBoot = 0 ;
|
||||||
|
DHTActive = uPnPActive = netLocalOk = netDhtOk = netStunOk = netExtraAddressOk = false ;
|
||||||
|
uPnPState = DHTPeers = 0 ;
|
||||||
|
}
|
||||||
|
std::string ownId;
|
||||||
|
std::string ownName;
|
||||||
|
|
||||||
std::string localAddr;
|
std::string localAddr;
|
||||||
int localPort;
|
int localPort;
|
||||||
std::string extAddr;
|
std::string extAddr;
|
||||||
int extPort;
|
int extPort;
|
||||||
std::string extName;
|
std::string extName;
|
||||||
|
|
||||||
bool firewalled;
|
bool firewalled;
|
||||||
bool forwardPort;
|
bool forwardPort;
|
||||||
|
|
||||||
int maxDownloadDataRate; /* kb */
|
int maxDownloadDataRate; /* kb */
|
||||||
int maxUploadDataRate; /* kb */
|
int maxUploadDataRate; /* kb */
|
||||||
int maxIndivDataRate; /* kb */
|
int maxIndivDataRate; /* kb */
|
||||||
|
|
||||||
int promptAtBoot; /* popup the password prompt */
|
int promptAtBoot; /* popup the password prompt */
|
||||||
|
|
||||||
/* older data types */
|
/* older data types */
|
||||||
bool DHTActive;
|
bool DHTActive;
|
||||||
bool uPnPActive;
|
bool uPnPActive;
|
||||||
|
|
||||||
int uPnPState;
|
int uPnPState;
|
||||||
int DHTPeers;
|
int DHTPeers;
|
||||||
|
|
||||||
/* Flags for Network Status */
|
/* Flags for Network Status */
|
||||||
bool netLocalOk; /* That we've talked to someone! */
|
bool netLocalOk; /* That we've talked to someone! */
|
||||||
bool netUpnpOk; /* upnp is enabled and active */
|
bool netUpnpOk; /* upnp is enabled and active */
|
||||||
bool netDhtOk; /* response from dht */
|
bool netDhtOk; /* response from dht */
|
||||||
bool netStunOk; /* recvd stun / udp packets */
|
bool netStunOk; /* recvd stun / udp packets */
|
||||||
bool netExtraAddressOk; /* recvd ip address with external finder*/
|
bool netExtraAddressOk; /* recvd ip address with external finder*/
|
||||||
};
|
};
|
||||||
|
|
||||||
/********************** For Search Interface *****************/
|
/********************** For Search Interface *****************/
|
||||||
|
Loading…
Reference in New Issue
Block a user