mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
Partially completed changes to implement final relay bits.
* Adding more detailed flags to each connection. * Cleaned up unneeded stuff from p3LinkMgr. * Added rswin.h includes before openssl - allows compilation using std Win OpenSSL. * Added getConnectFlags() to Net Base. * removed net_attempt and associated obsolete variables from pqissl * Made NetBinInterface protected in pqiperson (is this okay?) git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4767 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e432d89310
commit
abbebf48ff
10 changed files with 57 additions and 50 deletions
|
@ -101,7 +101,6 @@ pqissl::pqissl(pqissllistener *l, PQInterface *parent, p3LinkMgr *lm)
|
|||
pqil(l), // no init for remote_addr.
|
||||
readpkt(NULL), pktlen(0),
|
||||
attempt_ts(0),
|
||||
net_attempt(0), net_failure(0), net_unreachable(0),
|
||||
sameLAN(false), n_read_zero(0), mReadZeroTS(0),
|
||||
mConnectDelay(0), mConnectTS(0),
|
||||
mConnectTimeout(0), mTimeoutTS(0), mLinkMgr(lm)
|
||||
|
@ -151,7 +150,6 @@ pqissl::pqissl(pqissllistener *l, PQInterface *parent, p3LinkMgr *lm)
|
|||
int pqissl::connect(struct sockaddr_in raddr)
|
||||
{
|
||||
// reset failures
|
||||
net_failure = 0;
|
||||
remote_addr = raddr;
|
||||
remote_addr.sin_family = AF_INET;
|
||||
|
||||
|
@ -709,8 +707,6 @@ int pqissl::Initiate_Connection()
|
|||
//reset();
|
||||
|
||||
waiting = WAITING_FAIL_INTERFACE;
|
||||
// removing unreachables...
|
||||
//net_unreachable |= net_attempt;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
@ -923,8 +919,6 @@ int pqissl::Basic_Connection_Complete()
|
|||
//reset();
|
||||
|
||||
waiting = WAITING_FAIL_INTERFACE;
|
||||
// removing unreachables...
|
||||
//net_unreachable |= net_attempt;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue