mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 13:30:36 -04:00
Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack. This check-in commits the changes to the rsserver code. Major changes to use the new networking code. Added p3peers.h as a new interface for peer/neighbour management. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@314 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7c2d5611bd
commit
fd8adceb7e
13 changed files with 1039 additions and 701 deletions
|
@ -42,12 +42,7 @@ const int p3facefilezone = 11452;
|
|||
|
||||
static const int FileMaxAge = 1800; /* Reload Data after 30 minutes */
|
||||
|
||||
/* add in an extension if necessary */
|
||||
int ensureExtension(std::string &name, std::string def_ext)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
//int ensureExtension(std::string &name, std::string def_ext);
|
||||
|
||||
/****************************************/
|
||||
/****************************************/
|
||||
|
@ -91,27 +86,8 @@ int RsServer::UpdateAllTransfers()
|
|||
{
|
||||
FileTransferInfo ti;
|
||||
|
||||
/* set it up */
|
||||
certsign sign;
|
||||
cert *c = NULL;
|
||||
if (!convert_to_certsign((*it)->PeerId(), sign))
|
||||
{
|
||||
std::cerr << "CERTSIGN error!" << std::endl;
|
||||
}
|
||||
|
||||
/* look it up */
|
||||
c = getSSLRoot() -> findcertsign(sign);
|
||||
if (c == NULL)
|
||||
{
|
||||
std::cerr << "CERTSIGN error! 2" << std::endl;
|
||||
ti.source = "Unknown";
|
||||
}
|
||||
else
|
||||
{
|
||||
ti.source = c -> Name();
|
||||
}
|
||||
|
||||
ti.id = (*it)->PeerId();
|
||||
ti.source = mAuthMgr->getName(ti.id);
|
||||
ti.peerIds = (*it) -> allPeerIds.ids;
|
||||
|
||||
ti.fname = (*it) -> file.name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue