mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-27 19:10:41 -05:00
Final changes to add the new serialiser.
- added Chat / Msg and Disc services. - expanded rsiface to handle new serialiser. - mods to rsserver with new conversions etc. - added service directory to Makefile. - removed PROXY / CHANNELS from make.opt git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@276 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d9efb76b01
commit
46a001af47
19 changed files with 3605 additions and 156 deletions
|
|
@ -27,12 +27,15 @@
|
|||
#include <unistd.h>
|
||||
//#include <getopt.h>
|
||||
|
||||
#include "dbase/filedex.h"
|
||||
#include "server/filedexserver.h"
|
||||
#include "pqi/pqipersongrp.h"
|
||||
#include "pqi/pqiloopback.h"
|
||||
#include "util/rsdir.h"
|
||||
|
||||
#include "services/p3disc.h"
|
||||
#include "services/p3msgservice.h"
|
||||
#include "services/p3chatservice.h"
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
|
@ -455,9 +458,6 @@ int RsServer::StartupRetroShare(RsInit *config)
|
|||
/* sslroot does further checks */
|
||||
sslr -> loadInitialTrustedPeer(config->load_trustedpeer_file);
|
||||
}
|
||||
|
||||
server->loadWelcomeMsg();
|
||||
|
||||
}
|
||||
|
||||
unsigned long flags = 0;
|
||||
|
|
@ -476,10 +476,11 @@ int RsServer::StartupRetroShare(RsInit *config)
|
|||
|
||||
// create loopback device, and add to pqisslgrp.
|
||||
|
||||
std::string ownPeerId = sslr->getOwnCert()->PeerId();
|
||||
SearchModule *mod = new SearchModule();
|
||||
pqiloopback *ploop = new pqiloopback();
|
||||
pqiloopback *ploop = new pqiloopback(ownPeerId);
|
||||
|
||||
mod -> smi = 1;
|
||||
mod -> peerid = ownPeerId;
|
||||
mod -> pqi = ploop;
|
||||
mod -> sp = secpolicy_create();
|
||||
|
||||
|
|
@ -491,7 +492,21 @@ int RsServer::StartupRetroShare(RsInit *config)
|
|||
|
||||
server->load_config();
|
||||
|
||||
ad = pqih->getP3Disc();
|
||||
/* create Services */
|
||||
ad = new p3disc(sslr);
|
||||
msgSrv = new p3MsgService();
|
||||
chatSrv = new p3ChatService();
|
||||
|
||||
pqih -> addService(ad);
|
||||
pqih -> addService(msgSrv);
|
||||
pqih -> addService(chatSrv);
|
||||
|
||||
/* put a welcome message in! */
|
||||
if (config->firsttime_run)
|
||||
{
|
||||
msgSrv->loadWelcomeMsg();
|
||||
}
|
||||
|
||||
|
||||
// load up the help page
|
||||
std::string helppage = config->basedir + config->dirSeperator;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue