Merge pull request #11 from RetroShare/master

update
This commit is contained in:
defnax 2019-09-27 20:07:31 +02:00 committed by GitHub
commit b50322cb3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -26,6 +26,10 @@
# include <ws2tcpip.h>
#endif // WINDOWS_SYS
#ifdef __ANDROID__
# include <android/api-level.h>
#endif // def __ANDROID__
#include "pqi/pqinetwork.h"
#include "util/rsnet.h"
@ -272,7 +276,7 @@ int inet_aton(const char *name, struct in_addr *addr)
# include <winsock2.h>
# include <iphlpapi.h>
# pragma comment(lib, "IPHLPAPI.lib")
#elif defined(__ANDROID__)
#elif defined(__ANDROID__) && __ANDROID_API__ < 24
# include <string>
# include <QString>
# include <QHostAddress>
@ -320,7 +324,7 @@ bool getLocalAddresses(std::vector<sockaddr_storage>& addrs)
}
}
free(adapter_addresses);
#elif defined(__ANDROID__)
#elif defined(__ANDROID__) && __ANDROID_API__ < 24
foreach(QHostAddress qAddr, QNetworkInterface::allAddresses())
{
sockaddr_storage tmpAddr;

View File

@ -223,6 +223,9 @@ bool p3GxsCircles::createCircle(
cData.mMeta.mAuthorId = authorId;
cData.mMeta.mCircleType = static_cast<uint32_t>(circleType);
cData.mMeta.mGroupFlags = GXS_SERV::FLAG_PRIVACY_PUBLIC;
cData.mMeta.mCircleId = restrictedId;
cData.mLocalFriends = localMembers;
cData.mInvitedMembers = gxsIdMembers;
uint32_t token;
createGroup(token, cData);

View File

@ -120,7 +120,7 @@ bool RsEventsService::unregisterEventsHandler(RsEventsHandlerId_t hId)
void RsEventsService::data_tick()
{
auto nextRunAt = std::chrono::system_clock::now() +
std::chrono::milliseconds(1);
std::chrono::milliseconds(200);
std::shared_ptr<const RsEvent> eventPtr(nullptr);
size_t futureEventsCounter = 0;