662 Commits

Author SHA1 Message Date
thunder2
17bce57185 Added compare of Windows like directory separator to rsdir.cc 2021-12-28 01:28:07 +01:00
thunder2
753250b4e8 Added os specific RsFileUtil::rs_getline 2021-12-22 22:29:19 +01:00
thunder2
085e102ce1 Added RsFileUtil for os specific file functions
Added RsFileUtil::set_fd_nonblock to set a file descriptor to non blocking
2021-12-22 22:29:17 +01:00
csoler
4a76fddaa9 fixed conflicts with upstream/master 2021-12-19 21:10:15 +01:00
csoler
7c77cfd603 fixed a few bugs in new TorManager 2021-12-09 22:19:00 +01:00
csoler
bb37e2692b removed more QString, QHostAddress, QFile, QDir,... 2021-12-05 00:02:12 +01:00
csoler
d7afbea1dd progress in using ByteArray+std::string 2021-12-01 23:05:16 +01:00
Gioacchino Mazzurco
856ce2ffb1
Do not depend on Qt at all on Android
Do the necessary modifications to not depend on Qt to run on Android
  both in libretroshare and in retroshare-service
2021-11-30 11:55:15 +01:00
csoler
6a4cdcc471 continue on switching QString and QByteArray 2021-11-29 22:59:46 +01:00
Gioacchino Mazzurco
e4f25a558d
Implement pull request mechanism in RsGxsNetService
This could be used to request the online peers to pull updates from us
  ASAP, as an exaple when a group is created a pull request can be
  emitted too so the online peers pull the groups from us ASAP instead
  of waiting for the usual 60 seconds. A mechanism like this is
  especially useful on mobile phones where the internet connection is
  usually turned on only in a few moments (as an example while the user
  is interacting with the app).
Cleanup a few old corners in the code keeping retro-compatibility and
  make the code more welcoming to new developers.
Put a bunch of dead code under #ifdef.
2021-11-12 18:41:10 +01:00
Phenom
4cc0b9f492 Fix rsGetHostByNameSpecDNS by closing socket. 2021-11-08 10:20:44 +01:00
Gioacchino Mazzurco
e8b97405b9
Fix android build due missing include 2021-11-06 11:35:28 +01:00
Phenom
91a35f4a21 Change some code according G10h4ck remarks. 2021-11-06 00:32:36 +01:00
Phenom
7755f85c4c Move DNS stuff to single new file rsdnsutils.cc. 2021-11-05 22:48:41 +01:00
Phenom
81d2ddd7c7 Enable IPv6 DNS ExtIpFinder
Now empty node with only IPv6 can connect to other.
2021-11-05 22:48:41 +01:00
Phenom
a09db6717b Add ability to retrieve External IP using DNS server.
IPV6 compatible.
2021-11-05 22:48:41 +01:00
Gioacchino Mazzurco
fa48b03fac
mark single argument RsStackMutex costructor explicit 2021-11-05 15:31:08 +01:00
Gioacchino Mazzurco
a9fe1ba6de
Make DirStub serialization consistent on all architectures
Thanks elRepo.io developers to detect and report this bug with detail
https://gitlab.com/elRepo.io/elRepo.io-android/-/issues/52
2021-11-05 12:02:56 +01:00
Gioacchino Mazzurco
16ca0dc52c
RsThread fix warning and cleanup
Avoid compiler warning due to virtual method being called in destructor
  at this point the empty default version would be called without damage
  but making the compiler concernig about the semantic being different
  from the one the programmer meant.
Delete old superseeded function and do not depend on it on RsThread.
2021-11-04 19:17:57 +01:00
Phenom
5e9bc9c2b8 Fix RsThread when nothing to do and run finish before start. 2021-11-03 17:14:11 +01:00
Gioacchino Mazzurco
1b551d809f
First working prototype of GXS service search
Channels are now able to take advantage of the new deep search
  goodies

Rebase on top of master 2021/10/19
2021-10-28 09:51:29 +02:00
csoler
3ddf3d0853
Merge pull request #2132 from sehraf/pr_add_i2p_sam3
Replace I2P BOB with SAMv3
2021-10-24 20:39:22 +02:00
G10h4ck
58016fff65
Merge pull request #2444 from G10h4ck/single_file_share_plus_cleanup
Single file share plus cleanup
2021-10-19 15:45:32 +02:00
Gioacchino Mazzurco
8bed99cc9f
Fix compilation with C++17 2021-08-06 12:15:34 +02:00
Gioacchino Mazzurco
e850e00a82
Optimization, cleanup, compiler warning fix
Chores I have made while working on single file share
2021-07-19 16:40:13 +02:00
Gioacchino Mazzurco
817a961013
Improve RsDirUtil::lastWriteTime error reporting 2021-07-18 22:41:14 +02:00
Gioacchino Mazzurco
fc198d4e6d
libretroshare: add share single files (no dir, no extra)
Add capability to libretroshare to share single files without sharing
  the whole folder containing it, this is expecially useful in Android
  where files are organized in a peculiar way that render classic way of
  sharing folder almost unusable. Using extra files which was already
  implemented doesn't solve this use case as extra files are limited in
  time and dosn't support search and sharing permissions.
RetroShare GUI works fine if a single file is added as shared dir via
  JSON API, but probably would need tweaking some flags in file picker
  to give the ability to the user.
2021-07-18 21:16:45 +02:00
sehraf
5418483934
fixed wrong size check 2021-03-16 21:15:31 +01:00
sehraf
10189ba4d0
add i2psam3 2021-03-16 21:15:30 +01:00
sehraf
76f0678820
add fork of libsam3
add funtion to get i2p certificate crypto algo names
2021-03-16 21:15:26 +01:00
Phenom
3d9ba341f0 Fix Windows 64b G++ under MSys2 compil. 2021-03-05 17:40:06 +01:00
csoler
251d022ae1 attempt to fix error in setting external port when guessing external IP 2021-02-04 22:22:21 +01:00
Phenom
2ff3d83c30 Fix RsMutex Debug and add rs_mutex_debug qmake option. 2020-12-08 17:15:16 +01:00
Phenom
cf0360a172 Add current PID in Lock file. 2020-11-24 15:57:43 +01:00
Gioacchino Mazzurco
794fb13660
Fix description in copyright header 2020-08-01 18:28:20 +02:00
Gioacchino Mazzurco
3a6648f706
Fix build error on big endian architectures 2020-08-01 18:23:35 +02:00
Gioacchino Mazzurco
2d01eadd56
Fix missing include in i2p common 2020-06-29 15:45:53 +02:00
G10h4ck
891d7e7c9a
Merge pull request #1971 from sehraf/pr_i2p_refactoring
i2p refactoring
2020-06-16 18:26:08 +02:00
Gioacchino Mazzurco
f13b429f1c
Document what chars are return RsRandom::alphaNumeric
As requested by Cyril
2020-06-13 14:58:30 +02:00
sehraf
f18d49db48
use RsRandom::alphaNumeric 2020-06-13 11:07:07 +02:00
sehraf
8323b94a6a
use modern c++ 2020-06-13 10:58:44 +02:00
Gioacchino Mazzurco
5ff5a32df7
Proper naming for RsRandom string functions 2020-06-12 20:06:43 +02:00
sehraf
ebc5a116b2
remove unnecessary std::replace 2020-06-11 11:18:52 +02:00
sehraf
3d784e8871
remove unnecessary std::replace 2020-06-11 11:14:01 +02:00
sehraf
86c30a01dd
next attampt to use RS_DBG correctly 2020-06-11 10:55:09 +02:00
sehraf
7207e6a2c1
use RS_DBG 2020-06-10 22:06:12 +02:00
sehraf
008a4b87b3
replace std::map with std::array 2020-06-10 22:06:12 +02:00
sehraf
462f52585b
add helper for i2p related functions 2020-06-10 20:04:54 +02:00
Gioacchino Mazzurco
275bdba132
Unify common error category message into a function 2020-06-09 20:08:23 +02:00
Gioacchino Mazzurco
4f0e18cbfd
Fix Android armv7 compilation due to narrowing 2020-06-09 20:02:40 +02:00