mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #1317 from sehraf/pr_further_improve_fulltype
further conversion to new wrapper function
This commit is contained in:
commit
c4a0c18b18
@ -710,7 +710,7 @@ public:
|
|||||||
virtual bool getGroupNetworkStats(const RsGxsGroupId& grpId,RsGroupNetworkStats& stats);
|
virtual bool getGroupNetworkStats(const RsGxsGroupId& grpId,RsGroupNetworkStats& stats);
|
||||||
|
|
||||||
uint16_t serviceType() const { return mServType ; }
|
uint16_t serviceType() const { return mServType ; }
|
||||||
uint32_t serviceFullType() const { return ((uint32_t)mServType << 8) + (((uint32_t) RS_PKT_VERSION_SERVICE) << 24); }
|
uint32_t serviceFullType() const { return RsServiceInfo::RsServiceInfoUIn16ToFullServiceId(mServType); }
|
||||||
|
|
||||||
virtual RsReputations::ReputationLevel minReputationForForwardingMessages(uint32_t group_sign_flags,uint32_t identity_flags);
|
virtual RsReputations::ReputationLevel minReputationForForwardingMessages(uint32_t group_sign_flags,uint32_t identity_flags);
|
||||||
protected:
|
protected:
|
||||||
|
@ -459,10 +459,7 @@ bool p3ServiceControl::checkFilter(uint32_t serviceId, const RsPeerId &peerId)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// must allow ServiceInfo through, or we have nothing!
|
// must allow ServiceInfo through, or we have nothing!
|
||||||
#define FULLID_SERVICEINFO ((((uint32_t) RS_PKT_VERSION_SERVICE) << 24) + ((RS_SERVICE_TYPE_SERVICEINFO) << 8))
|
if (serviceId == RsServiceInfo::RsServiceInfoUIn16ToFullServiceId(RS_SERVICE_TYPE_SERVICEINFO))
|
||||||
|
|
||||||
//if (serviceId == RS_SERVICE_TYPE_SERVICEINFO)
|
|
||||||
if (serviceId == FULLID_SERVICEINFO)
|
|
||||||
{
|
{
|
||||||
#ifdef SERVICECONTROL_DEBUG
|
#ifdef SERVICECONTROL_DEBUG
|
||||||
std::cerr << "p3ServiceControl::checkFilter() Allowed SERVICEINFO";
|
std::cerr << "p3ServiceControl::checkFilter() Allowed SERVICEINFO";
|
||||||
|
@ -50,7 +50,7 @@ std::string generateRandomServiceId();
|
|||||||
|
|
||||||
|
|
||||||
// p3FastService(uint16_t type)
|
// p3FastService(uint16_t type)
|
||||||
// :pqiService((((uint32_t) RS_PKT_VERSION_SERVICE) << 24) + (((uint32_t) type) << 8)),
|
// :pqiService((RsServiceInfo::RsServiceInfoUIn16ToFullServiceId(type)),
|
||||||
|
|
||||||
|
|
||||||
class p3FastService: public pqiService
|
class p3FastService: public pqiService
|
||||||
|
Loading…
Reference in New Issue
Block a user