mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 06:14:25 -04:00
Major work on distrib/forums system.
- Now creates Distribution Groups, with Admin + Publish Keys. - Distributes Groups + Public Keys in the Cache File. - Stores private Keys and subscribed groups in Configuration. - Forum Test to check basic functionality. - Added nullService for services that require tick(), but no instant messages. - removed debugging for other services (ranking/gamelauncher) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@593 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
602c7cc7b7
commit
14dac82c85
9 changed files with 2379 additions and 622 deletions
|
@ -95,6 +95,35 @@ void addSerialType(RsSerialType *);
|
|||
};
|
||||
|
||||
|
||||
class nullService: public pqiService
|
||||
{
|
||||
protected:
|
||||
|
||||
nullService(uint16_t type)
|
||||
:pqiService((((uint32_t) RS_PKT_VERSION_SERVICE) << 24) + (((uint32_t) type) << 8))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//virtual int tick()
|
||||
|
||||
public:
|
||||
// overloaded NULL pqiService interface.
|
||||
virtual int receive(RsRawItem *item)
|
||||
{
|
||||
/* drop any items */
|
||||
delete item;
|
||||
return 1;
|
||||
}
|
||||
|
||||
virtual RsRawItem * send()
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
|
||||
class p3ThreadedService: public p3Service, public RsThread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue