mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
commit
b50322cb3e
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user