csoler
9c610a736d
cleaned the hierarchy of serialization classes
2017-04-26 11:40:46 +02:00
csoler
77e809ea4b
switched GRouter to new serialization
2017-04-25 21:21:46 +02:00
Phenom
3592d5bf5d
Fix GCC warnings: unused parameter ‘names’
...
/libretroshare/src/pqi/pqiservice.h:80: warning: unused parameter
‘names’ [-Wunused-parameter]
virtual void getItemNames(std::map<uint8_t,std::string>& names)
const {} // This does nothing by default. Service should derive it in
order to give info for the UI
^~~~~
2017-04-25 09:53:06 +02:00
csoler
0d7df568b4
moved rsconfigitems and rshistoryitems to rsitems/
2017-04-24 22:47:08 +02:00
csoler
fcabe6359f
switch RsConfigItems to new serialization
2017-04-24 18:51:51 +02:00
csoler
f6aaee7382
converted RTT items to new serialization
2017-04-24 11:01:45 +02:00
csoler
5f8bf03dfe
added mechanism to allow services to document the names of their items, and improved bandwidth graph to show names for GXS services. Other services still need to supply their own names
2017-04-20 20:54:51 +02:00
csoler
e2d9152b22
moved converted serialisation files into new directory rsitems/, leaving serialiser/ for the serialisation classes
2017-04-18 21:11:37 +02:00
Phenom
e83104ee0f
Fix Clang warnings: Add author and date to #warning
2017-04-17 21:32:14 +02:00
Phenom
22043094b5
Fix Clang warnings: extraneous parentheses
...
warning: equality comparison with extraneous parentheses [-Wparentheses-
equality]
else if ((err == ECONNREFUSED))
~~~~^~~~~~~~~~~~~~~
2017-04-17 21:26:50 +02:00
Phenom
dc533b1346
Fix Clang warnings: private field not used
...
warning: private field 'lastGroupId' is not used [-Wunused-private-
field]
uint32_t lastGroupId;
warning: private field 'waittimes' is not used [-Wunused-private-field]
int waittimes;
warning: private field 'listen_checktime' is not used [-Wunused-private-
field]
long listen_checktime;
2017-04-17 21:26:09 +02:00
Phenom
65321501e4
Fix Clang warnings: Overloaded vf hide in p3dhtmgr
...
warning: 'p3DhtMgr::findPeer' hides overloaded virtual function [-
Woverloaded-virtual]
virtual bool findPeer(std::string id);
warning: 'p3DhtMgr::dropPeer' hides overloaded virtual function [-
Woverloaded-virtual]
virtual bool dropPeer(std::string id);
warning: 'p3DhtMgr::getPeerStatus' hides overloaded virtual function [-
Woverloaded-virtual]
virtual bool getPeerStatus(std::string id,
2017-04-17 21:24:45 +02:00
Phenom
6fecac5f7b
Fix Clang warnings: Overloaded vf hide
...
warning: 'pqiconnect::connect_parameter' hides overloaded virtual
function [-Woverloaded-virtual]
virtual bool connect_parameter(uint32_t type, std::string value)
{ return ni->connect_parameter(type, value);}
^
2017-04-17 21:15:52 +02:00
Phenom
105840ab98
Fix Clang Warning: Overloaded vf hide
...
warning: 'pqiConnectCbDummy::peerConnectRequest' hides overloaded
virtual function [-Woverloaded-virtual]
virtual void peerConnectRequest(const RsPeerId& id,
^
2017-04-17 21:10:22 +02:00
Gioacchino Mazzurco
2630ed4573
Merge branch 'master' into gxs_mail_experiments
2017-03-13 22:57:33 +01:00
cyril soler
69c3df6dff
fixed bug in total item size estimation in pqiqosstreamer due to item slicing
2017-03-10 15:36:50 +01:00
cyril soler
fd84639a45
removed some debug info
2017-03-10 15:05:41 +01:00
csoler
ee9fbefd76
added signal blockign trick for widgets, and fixed the bug causing wrong values to be displayed in server settings
2017-02-27 22:29:01 +01:00
Gioacchino Mazzurco
9a3af092eb
Merge branch 'master' into gxs_mail_experiments
2017-02-27 08:43:29 +01:00
csoler
99cf69a98c
Merge pull request #703 from RetroShare/v0.6-ImprovedGUI
...
V0.6 improved gui
2017-02-26 20:14:34 +01:00
csoler
eb817af9b8
Merge pull request #689 from csoler/v0.6-SSL110Fix
...
fixing compilation with openssl-1.1.0 (part 1)
2017-02-26 20:12:52 +01:00
csoler
e75487e48a
suppressed a few warnings (suggested by Phenom)
2017-02-25 23:16:43 +01:00
Gioacchino Mazzurco
748e75d3e1
Fix pqiSSLstore::encryptedSendItems empty list
...
RsTemporaryMemory was complaining of being initialized with size 0 in
case of empty list was passed to the method, this is a legitimate use
case when one want have an empty list as state, so in this case pass 1
as argument to RsTemporaryMemory constructor
2017-02-25 23:09:46 +01:00
Gioacchino Mazzurco
828792f2b5
p3Config improved coding style
2017-02-23 13:20:07 +01:00
csoler
0e57874ad3
fixed loading of settings::Server page
2017-02-22 22:22:50 +01:00
csoler
8c3f553579
fixed compilation with openssl1.0.1 broken by previous commits
2017-02-20 22:54:25 +01:00
csoler
5c95b88095
compilation fix for openssl-1.1.0 (pqissl+authssl part)
2017-02-19 22:38:02 +01:00
csoler
ccacba797f
added pgp passphrase temporary caching in order to avoid re-asking for password at location creation time
2017-02-12 15:27:13 +01:00
jolavillette
1b8de7b30e
Attempt to reduce BW bursts
2017-01-18 13:25:45 +01:00
csoler
d3051eff1a
added display of usage statistics for GXS identities
2016-12-21 00:34:07 +01:00
Phenom
674b6de381
Fix Some gcc warnings 383 to 208 lines
...
Left explicit #warning and deprecated.
Some lines are wrong indented and produce mal formed code.
2016-11-30 22:01:01 +01:00
Gio
8ab3c7de26
Merge branch 'master' into android
2016-11-07 14:37:23 +01:00
BuildTools
78d6735b52
Create 2 #define in pqistreamer to easily disable packet slicing/grouping
2016-11-05 19:58:06 +01:00
BuildTools
192cbe1eda
Create two #define in pqistreamer.cc to easily disable packet slicing and/or grouping
2016-11-05 14:57:39 +01:00
Gio
ea42d822c2
Merge branch 'master' into android
2016-10-26 13:43:24 +02:00
csoler
e42dae8f78
continue sending packet slicing probes in case the peer has restarted
2016-10-04 21:34:23 +02:00
csoler
b08a62afc9
restored delay between location cleaning to 5 mins
2016-10-04 21:25:56 +02:00
csoler
133676fdee
simplified the code to remove old locations and fixed bug that in some situation would let a PGP key with no locations
2016-10-04 21:25:56 +02:00
csoler
c968490b43
switched to floating point time for bandwidth estimation in pqistreamer. Helps a lot RTTs since rounding to int prveviously caused packets to be delayed up to 1 sec (improvement by Jollavilette)
2016-10-01 22:15:06 +02:00
cyril soler
7bddd4bcd4
removed call to exit causing the software to stop when local network interfaces are not ready
2016-09-23 13:19:19 +02:00
Gio
48a9be0ccc
Use Qt to read the local addresses on android
...
getifaddrs is not present on android and an alternative implementation
crashed, use QNetworkInterface::allAddresses() to retrieve local
addresses list instead
This
2016-09-21 12:46:55 +02:00
Gio
9d83d56811
Merge branch 'master' into android
2016-09-04 15:16:57 +02:00
Gio
7a2ae6e979
Remove some clutter from libretroshare
...
Removed SearchInterface that was an historical remain that make no sense anymore
Fixed some clang warning
Fix includes on some files
2016-08-25 11:39:15 +02:00
Gio
68a00138d2
Avoid usage of deprecated function RSA_generate_key that make android
...
compiler mad
2016-08-23 12:15:28 +02:00
Gio
9a980def2c
libretroshare now compiles for Android, instruction on how to do it included
2016-08-23 12:15:28 +02:00
dimqua
613ce25209
Change I2P proxy default port to 4447
2016-08-19 09:47:52 +04:00
Phenom
275c47eff9
Add Title when ask for password.
2016-08-09 01:22:14 +02:00
Phenom
d59f7a09db
Fix NAT Status LED
...
Fix the PR#426 4d2d825d
2016-08-08 21:59:12 +02:00
csoler
a69629cf73
added missing own id from group list, and removed possible duplicates in random group ids
2016-07-06 22:16:05 -04:00
csoler
269f9457be
fixed load/save of new group ids and backward compatibility with FriendList
2016-07-06 22:02:56 -04:00
csoler
01c0d2f0f1
finished conversion to RsNodeGroupId for file transfer and GUI
2016-07-05 23:49:43 -04:00
csoler
4ee9effc4e
changed internal storage of groups of friend nodes so as to use an abstract ID instead of a string (phase 1 of local circles)
2016-07-04 23:55:48 -04:00
Cyril Soler
c15c979851
Merge pull request #426 from sehraf/pr-disable-dht-stunner
...
This patch set adds an option to use the DHT stunner to qmake
2016-06-27 17:17:28 +01:00
csoler
ff8667834b
clear error queue before calling SSL_read()/SSL_write(), to avoid remaining errors to corrupt the next connection attempts and cause disconnections
2016-06-26 23:14:01 -04:00
csoler
31089d7a91
added auto-clean of pending data in pqistreamer after connection is closed, to avoid confusing the peer after re-connecting (probably not the cause of the SSL errors we see)
2016-06-25 19:12:47 +01:00
sehraf
5d962682e1
removed unused variable warnings
2016-06-21 14:02:52 +02:00
sehraf
4d2d825d5b
add new option to qmake to enable dht stunner
...
removed dht stunner code when option is not set
2016-06-21 13:55:23 +02:00
Cyril Soler
90a27f4e81
Merge pull request #418 from sehraf/pr-improve-debug
...
This is the first set of patches to improve RS' logging functionality
2016-06-18 15:33:10 -04:00
sehraf
09afbbed5d
switched to new rslog method
2016-06-18 13:00:15 +02:00
csoler
dbd78d2401
merged with upstream/master
2016-06-16 20:19:03 -04:00
csoler
6b74a8a1b6
added missing call to ssl_pendign in pqissludp.
2016-06-14 21:54:24 -04:00
csoler
8c44e69012
added output of items which doesnot serialise correctly in pqisslstore
2016-06-14 21:54:24 -04:00
csoler
972de42864
converted static variable to class member in pqihandler
2016-06-11 18:07:57 -04:00
Cyril Soler
248d0c42d3
Merge pull request #412 from csoler/v0.6-MaxUpRate
...
V0.6 max up rate
2016-06-11 17:58:08 -04:00
csoler
ef4455ac9c
cleaned the MaxUpRate branch from unused code
2016-06-11 17:54:11 -04:00
csoler
8e75185060
made avgReadCount and avgSendCound to be uint32_t instead of floats, since they count bytes. Changes kb to 1024 instead of 1000
2016-06-11 17:21:04 -04:00
csoler
373d41bc63
added missing variable def after previous commit
2016-06-11 14:11:21 -04:00
csoler
23e8e932be
added mutex proteciton around mAvgLastUpdate to avoid it being changed by the constructor
2016-06-11 09:50:22 -04:00
csoler
0d1d31a25f
added mutex protection around pqistreamer::getRates, since float r/w are not necessarily atomic
2016-06-11 09:33:16 -04:00
csoler
83a143476e
fixed bug in setting MaxRate values
2016-06-09 23:23:51 -04:00
csoler
f5ad8b49be
moved node-wide options to node details
2016-06-09 23:13:07 -04:00
csoler
a4931edee0
fixed setting/getting maxrates using pgp id
2016-06-09 20:51:09 -04:00
csoler
a07805be1d
moved bandwidth limits to the pgp level
2016-06-09 20:41:27 -04:00
csoler
38b86c37ab
improved debug output for early address rejection
2016-06-09 18:12:04 -04:00
csoler
6b78275677
fixed bug in loading config file to set max rates
2016-06-08 22:54:40 -04:00
csoler
5a0fa66ac0
added proper talking between pqihandler and GUI for maxrates fixing
2016-06-08 22:44:28 -04:00
csoler
509266a25b
removed some dead code
2016-06-07 22:38:24 -04:00
csoler
20b6745f70
added GUI and storage for max up/dn rates per peer
2016-06-07 21:48:22 -04:00
csoler
927f782bef
pass over compiler warnings
2016-06-05 10:43:57 -04:00
csoler
53eb4dfb12
fixed compilation errors due to last merge operation
2016-06-02 21:21:18 -04:00
csoler
e2b5785eec
merged PR403 with trunk
2016-06-02 21:15:51 -04:00
csoler
10e0254317
fixed a few things to correct PR403
2016-06-02 20:38:33 -04:00
Cyril Soler
2f4f44ee48
added early discarding of incoming connection attempt (before SSL handshake) for blacklisted IPs
2016-06-02 09:37:01 -04:00
sehraf
4f60c8cc9b
libretroshare: fix comparison between signed and unsigned integer
2016-06-02 14:54:23 +02:00
sehraf
8b788b2aa8
libretroshare: fix member initialisation order
2016-06-02 14:54:16 +02:00
sehraf
cfc0e7071a
libretroshare: remove unused variables
2016-06-02 14:54:07 +02:00
sehraf
bc23c2f7b9
add thread names for peers
2016-06-01 16:33:13 +02:00
sehraf
f16ee97093
add static thread names
2016-06-01 16:21:55 +02:00
Phenom
af5129c26d
Fix Mutex in pqipersongrp for pqilistener by adding local Mutex.
2016-05-18 19:15:37 +02:00
Cyril Soler
f3aed813af
added test over signature size to avoid possible memory corruption (Anonymous source)
2016-05-17 10:39:56 -04:00
Phenom
a1ece16f35
Fix uninitialized variables netsize, rsnetsize in p3netmgr.cc
2016-05-12 20:00:44 +02:00
Cyril Soler
e891e2be2e
added missing check for ssl_connection that would cause crash when the ssl connection gets closed by another thread
2016-05-11 10:00:20 -04:00
csoler
b5ace406b9
attempt to fix socket problem on 32bits/64bits windows, by using the proper SOCKET type instead of int
2016-05-05 21:40:29 -04:00
csoler
ca003c5f9e
added missing initialisation of deleted memory before calling realloc
2016-05-03 20:55:50 -04:00
csoler
aec8b4d27c
fixed bug in counting of incoming data size for sliced packets
2016-05-02 18:10:39 -04:00
csoler
01605e5a59
updated description f packet slicing in comments section of pqistreamer
2016-04-30 11:19:21 -04:00
csoler
1f7a94d49e
fixed bug causing crash in pqistreamer
2016-04-30 11:13:51 -04:00
csoler
4bdd464861
removed a few debug output and timer measurement
2016-04-29 18:53:25 -04:00
csoler
3bc3989e79
removed debug info for pqistreamer
2016-04-29 18:41:10 -04:00
csoler
654e0fc1d8
added missing call to SSL_pending, which caused decrypted data to wait in the SSL buffer when the bio is not receiving anything more
2016-04-29 17:53:21 -04:00