mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed uninitialized members of bdProxyId and bdConnectionRequest.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8515 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
846d5f4f50
commit
5aa8de3e62
@ -152,11 +152,10 @@ class bdConnection
|
||||
class bdProxyId
|
||||
{
|
||||
public:
|
||||
|
||||
bdProxyId(const bdId &in_id, uint32_t in_srctype, uint32_t in_errcode)
|
||||
:id(in_id), srcType(in_srctype), errcode(in_errcode) { return; }
|
||||
|
||||
bdProxyId() :srcType(BD_PI_SRC_UNKNOWN) { return; }
|
||||
bdProxyId() :srcType(BD_PI_SRC_UNKNOWN), errcode(0) { return; }
|
||||
|
||||
std::string proxySrcType() const;
|
||||
|
||||
@ -168,6 +167,12 @@ class bdProxyId
|
||||
|
||||
class bdConnectionRequest
|
||||
{
|
||||
public:
|
||||
bdConnectionRequest() : mMode(0), mState(0), mStateTS(0), mPauseTS(0), mErrCode(0), mDelay(0), mRequestTS(0), mRecycled(0), mCurrentSrcType(0)
|
||||
{
|
||||
bdsockaddr_clear(&mLocalAddr);
|
||||
}
|
||||
|
||||
public:
|
||||
int setupDirectConnection(struct sockaddr_in *laddr, bdNodeId *target);
|
||||
int setupProxyConnection(struct sockaddr_in *laddr, bdNodeId *target, uint32_t mode, uint32_t delay);
|
||||
|
Loading…
Reference in New Issue
Block a user