mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 07:25:36 -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
1 changed files with 9 additions and 4 deletions
|
@ -151,12 +151,11 @@ class bdConnection
|
||||||
|
|
||||||
class bdProxyId
|
class bdProxyId
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
bdProxyId(const bdId &in_id, uint32_t in_srctype, uint32_t in_errcode)
|
bdProxyId(const bdId &in_id, uint32_t in_srctype, uint32_t in_errcode)
|
||||||
:id(in_id), srcType(in_srctype), errcode(in_errcode) { return; }
|
: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;
|
std::string proxySrcType() const;
|
||||||
|
|
||||||
|
@ -168,7 +167,13 @@ class bdProxyId
|
||||||
|
|
||||||
class bdConnectionRequest
|
class bdConnectionRequest
|
||||||
{
|
{
|
||||||
public:
|
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 setupDirectConnection(struct sockaddr_in *laddr, bdNodeId *target);
|
||||||
int setupProxyConnection(struct sockaddr_in *laddr, bdNodeId *target, uint32_t mode, uint32_t delay);
|
int setupProxyConnection(struct sockaddr_in *laddr, bdNodeId *target, uint32_t mode, uint32_t delay);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue