mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
* Addition of almost completed p3ranking class - still streaming / ranking to do.
* Major modifications to p3disc to use the new AuthMgr and ConnMgr. * Modified RsDiscItems to match new p3disc. * Modified ConnMgr to accept information from p3disc. * Addition of new Load/Save Certificate From/To Binary to AuthMgr. * Corrected default build to Linux. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@325 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3451af6152
commit
06aae24efd
19 changed files with 1541 additions and 2171 deletions
|
@ -59,6 +59,12 @@ const uint32_t RS_NET_CONN_TCP_EXTERNAL = 0x0002;
|
|||
const uint32_t RS_NET_CONN_UDP_DHT_SYNC = 0x0010;
|
||||
|
||||
|
||||
/* flags of peerStatus */
|
||||
const uint32_t RS_NET_FLAGS_USE_DISC = 0x0001;
|
||||
const uint32_t RS_NET_FLAGS_USE_DHT = 0x0002;
|
||||
const uint32_t RS_NET_FLAGS_ONLINE = 0x0004;
|
||||
const uint32_t RS_NET_FLAGS_EXTERNAL_ADDR = 0x0008;
|
||||
|
||||
class peerAddrInfo
|
||||
{
|
||||
public:
|
||||
|
@ -119,15 +125,15 @@ class peerConnectState
|
|||
peerConnectAddress currentConnAddr;
|
||||
std::list<peerConnectAddress> connAddrs;
|
||||
|
||||
time_t lastcontact;
|
||||
|
||||
/* stuff here un-used at the moment */
|
||||
|
||||
//time_t c_timestamp; // last connect timestamp
|
||||
//time_t lr_timestamp; // last receive timestamp
|
||||
|
||||
time_t lc_timestamp; // last connect timestamp
|
||||
time_t lr_timestamp; // last receive timestamp
|
||||
|
||||
time_t nc_timestamp; // next connect timestamp.
|
||||
time_t nc_timeintvl; // next connect time interval.
|
||||
//time_t nc_timestamp; // next connect timestamp.
|
||||
//time_t nc_timeintvl; // next connect time interval.
|
||||
};
|
||||
|
||||
|
||||
|
@ -182,7 +188,7 @@ void removeMonitor(pqiMonitor *mon);
|
|||
/******* overloaded from pqiConnectCb *************/
|
||||
virtual void peerStatus(std::string id,
|
||||
struct sockaddr_in laddr, struct sockaddr_in raddr,
|
||||
uint32_t type, uint32_t mode, uint32_t source);
|
||||
uint32_t type, uint32_t flags, uint32_t source);
|
||||
virtual void peerConnectRequest(std::string id, uint32_t type);
|
||||
virtual void stunStatus(std::string id, struct sockaddr_in addr, uint32_t flags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue