mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-18 02:50:47 -04:00
NETWORK REWORK (cont)
pqiperson / pqipersongrp: generally okay, One Nasty BUG. * removed pqipersongrp::getPeer() fn. Violated Mutex protections!!!! * reworked heartbeat code, which used getPeer() fn. * switched all notifyConnect() calls to include remote_addr. * added explicit stoplistening() call when removing peer. * removed funny DO_NEXT_ATTEMPT callback code. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3216 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
00d0d999dc
commit
9f4deb1cf7
3 changed files with 44 additions and 49 deletions
|
@ -67,13 +67,15 @@ virtual void statusChange(const std::list<pqipeer> &plist);
|
|||
|
||||
/******************* Peer Control **************************/
|
||||
virtual int addPeer(std::string id); /* can be overloaded for testing */
|
||||
virtual pqiperson *getPeer(std::string id); /* can be overloaded for testing */
|
||||
int removePeer(std::string id);
|
||||
int connectPeer(std::string id);
|
||||
|
||||
/* Work-around to dodgy pointer stuff */
|
||||
int tagHeartbeatRecvd(std::string id);
|
||||
|
||||
/*** callback from children ****/
|
||||
bool notifyConnect(std::string id, uint32_t type, bool success, struct sockaddr_in remote_peer_address);
|
||||
bool notifyConnect(std::string id, uint32_t type, bool success);
|
||||
//bool notifyConnect(std::string id, uint32_t type, bool success);
|
||||
|
||||
// tick interfaces.
|
||||
virtual int tick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue