Commit Graph

632 Commits

Author SHA1 Message Date
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
Gioacchino Mazzurco
f99a8a0fc6
Improve homogeneity of rsdebug
Offer variadic style macros also for RsInfo...RsFatal
2020-06-09 16:10:07 +02:00
Gioacchino Mazzurco
aef87fb1f8
Multiple improvements in debugging helpers
Add variadic style macro helpers that make debugging code disappear completely
  (also the paramethers evaluation) when debugging level is lower
Chained style << is now atomic like variadic style, still can't benefit
  of paramethers eveluation stripping
Reduced to minimum the difference between Android and other platform
  debugging code
Port debugging code to new helpers, expecially a few corner cases to
  test it, and as examples of how to use it.
2020-06-01 00:53:58 +02:00
Gioacchino Mazzurco
0c1785b0d3
Merge branch 'atomic_variadic_log' 2020-05-30 22:11:04 +02:00
Gioacchino Mazzurco
2ae21ca800
rsdebug supports variadic style for atomic log 2020-05-29 01:09:10 +02:00
Gioacchino Mazzurco
c1c303218c
Change raw memory JSON representation
Fix bug reported by b1rdG
The new way permits to add more formats in the future without breaking
  retro-compatibility again.
Add support for RsJson in rsdebug for Android
2020-05-28 23:01:04 +02:00
Gioacchino Mazzurco
d76f397358
RsBase64 calculate size properly and avoid FP math 2020-05-28 17:57:42 +02:00
Gioacchino Mazzurco
3332c32a84
RsBase64 handle correcly 0 lenght buffer encoding 2020-05-26 19:56:17 +02:00
csoler
11a4b6540f
cleaned-up circles cache. Needs testing. 2020-05-07 17:31:58 +02:00
Gioacchino Mazzurco
2f0b0f48bf
Better atomicity (not perfect) for RsDdg() and companions 2020-04-21 18:10:58 +02:00
csoler
1cfbfdaf63
Merge pull request #1866 from PhenomRetroShare/Fix_SIGSEGV_OnRsThreadStart
Fix SIGSEGV on RsThread::start
2020-04-21 13:11:35 +02:00
Gioacchino Mazzurco
3f38d04680
Clarify pointer ownership decorators documentation
Use old char* in PGP functionas asked by Cyril
2020-04-20 15:52:29 +02:00
Phenom
c0ce5c7088 Fix SIGSEGV on RsThread::start
mTid could be null while pError is null too.

This happens to me always with "gxs integrity".
2020-04-19 11:24:57 +02:00
Gioacchino Mazzurco
76d492b4aa
Add forgot authorship in rsbase64* 2020-04-14 12:24:58 +02:00
Gioacchino Mazzurco
d7f23ce21c
Deprecate unreliable Channels features
Fix licensing years
2020-04-14 12:17:03 +02:00
Gioacchino Mazzurco
a0da5a3120
Improve debugging 2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
55aab6c447
Add RsFiles::requestFiles to de API to download whole colletions
Fix filetree creation from single file
RsDirUtil::moveFile now works also if parent directories doesn't exists
Backport std::filesystem::create_directories from C++17
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
fc5ad40c90
Add C++14 template types helpers that seems missing in TravisCI MacOSX 2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
39bde58c29
Many serialization and related stuff improvements
Fix bug in array-like containers serialization which could cause almost infinite
  loop on malformed input
Implement VLQ integer serialization
Unify sequence containers serialization code
Add support for VLQ serialization also for string size
Use VLQ compression for file links
Add templated function to fix endiannes for all integer types
Use bitset to print flags in binary form
Unify serialization code for integral types
Serialize 64bit integers types to JSON object with both string and integer
  representation, so it is posible to have this representation also for
  containers types like std::vetor or std::map this breaks retrocompatibility
  but is necessary to support clients written in languages which doesn't have
  64 bit integers support such as JavaScript or Dart
2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
d203f31d0c
Improve files links generation parsing and errors
Implement URL safe base64 for file links
Implement sneaking file data into URL fragment
Deprecate Radix65 in favore of RsBase64 which supports also URL safe encoding
2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
55d466f79b
Initial work on RsFiles links support in libretroshare 2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
50adf00804
Add millisecond details to debug messages timestamp 2020-04-05 23:02:53 +02:00
csoler
f59193b625
fixed bug in SQL access where timeout was compared to a negative value 2020-03-05 20:51:02 +01:00
csoler
a9f24c85a0
Merge pull request #1774 from G10h4ck/json_api_improvements
JSON API improvements
2020-02-07 23:16:04 +01:00
Gioacchino Mazzurco
039e8f653d
Solve race condition in JSON API restart
Improve atomic access to restbed service
Protect JSON API restart against bursts
Fix JSON API error condition enum registration
Provide ostream helper for error_condition
Provide optional forced thread cancel for debugging purpose, disabled by
  default at compile time define RS_THREAD_FORCE_STOP to enable it
Avoid double fullstop in retroshare-gui json api apply button
2020-02-05 18:56:47 +01:00
Gioacchino Mazzurco
5dbbe1ffd7
Improve debugabbility of JSON API
JSON API server uses standardized error handling based on
  std::error_condition for a few method, this improve debugabbility both
  from library size and from API client side
JSON API auth token are now more flexible, now the only proibition is using
  colon character ':' in user name
Implemented TO_JSON operation for std::error_condition
Avoid unkown serial job handling code duplication via fatalUnknownSerialJob
Usability improvement in t_RsLogger
Disable compilation of now unused is_alphanumeric
2020-01-27 21:22:49 +01:00
hunbernd
2b2a9f9a89 Merge upstream 2020-01-13 11:21:59 +01:00
Gioacchino Mazzurco
f12ec2b535
JSON API service and RsThread fixups 2020-01-08 14:24:46 +01:00
hunbernd
0e8b12ff9f Merge upstream 2020-01-07 15:05:21 +01:00
Gioacchino Mazzurco
f4f7b8a1ea
Few fixes after rebase 2020-01-06 14:46:36 +01:00
defnax
246029736d Added anmos changes & own improvements
Added the changes from anmo
Added to store/load last used identity for posted composer
Added remove button for remove the attached image
Fixed to hide the Notes button when there is not text content (PosteItem)
Fixed the ui margins better look
2020-01-04 17:01:58 +01:00