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:
electron128 2015-05-16 11:19:53 +00:00
parent 3d3a163a75
commit 66242ce068
10 changed files with 48 additions and 16 deletions

View file

@ -367,6 +367,11 @@ void pqissl::getCryptoParams(RsPeerCryptoParams& params)
}
}
bool pqissl::actAsServer()
{
return (bool)ssl_connection->server;
}
/* returns ...
* -1 if inactive.
* 0 if connecting.