mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 16:45:11 -04:00
show if TCP connection is incoming or outgoing (modified patch from sehraf)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8265 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3d3a163a75
commit
66242ce068
10 changed files with 48 additions and 16 deletions
|
@ -657,7 +657,7 @@ int pqipersongrp::connectPeer(const RsPeerId& id
|
|||
return 1;
|
||||
}
|
||||
|
||||
bool pqipersongrp::notifyConnect(const RsPeerId& id, uint32_t ptype, bool success, const struct sockaddr_storage &raddr)
|
||||
bool pqipersongrp::notifyConnect(const RsPeerId& id, uint32_t ptype, bool success, bool isIncomingConnection, const struct sockaddr_storage &raddr)
|
||||
{
|
||||
uint32_t type = 0;
|
||||
if (ptype == PQI_CONNECT_TCP)
|
||||
|
@ -670,7 +670,7 @@ bool pqipersongrp::notifyConnect(const RsPeerId& id, uint32_t ptype, bool suc
|
|||
}
|
||||
|
||||
if (mLinkMgr)
|
||||
mLinkMgr->connectResult(id, success, type, raddr);
|
||||
mLinkMgr->connectResult(id, success, isIncomingConnection, type, raddr);
|
||||
|
||||
return (NULL != mLinkMgr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue