3666 Commits

Author SHA1 Message Date
drbob
dec9586c04 Bugfixes to get addresses communicated properly for various cases.
* Cleaned up IP Address passing.
 * Added Fallback to Dht Node Addresses, if now addresses were specified.
 * Explicitly cleaned IP addresses which are unknown at various points.
 * Added more debugging.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4290 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-18 18:08:10 +00:00
drbob
7caf2c9b1c Bugfixes for UdpRelay:
* Added Printer for Relay Headers.
 * Added missing "ID String" in packet creation.
 * turned off debugging in udpstunner.
 * Found bad Mutex Issue, with udprelay code. have to fix!



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4289 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-18 16:27:36 +00:00
drbob
6a6f1aefdb Modified the BitDHT Version string to include Engine Version. eg BD02RS52
Modified various internal searches inline with these changes.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4279 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-17 15:15:39 +00:00
drbob
9a5273895c Reworked the Udp Stunner to make it more flexible.
* Added TargetStunPeriod.
 * Added Low Pass Filter of SucessRate to adjust Stun sends.
 * Changed expiry to make it dependent on above stuff.
 * Added Passive mode.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4278 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-17 15:11:06 +00:00
drbob
ba77a0dd16 Added PeerNetStateBox. The idea is a single class which takes all the inputs and
determines the Network State (Good, Bad, Firewalled etc) & if a Reset is required 
Using this we should be able to provide very good feedback to the user to help them 
get RS working optimally. Unfortunately it is quite a complex state box to get right!
	* Outlined basics of PeerNetStateBox. (Lots still to do!)
	* Added initial inputs for PeerNetStateBox.
	* Added NetState, NetworkMode, NatType, NatHole, ConnectMode outputs.
	* piped output through to GUI.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4274 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-16 16:14:30 +00:00
drbob
aee6879561 protect unix header file.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-15 22:20:39 +00:00
csoler
c615a0302b fixed compilation on ubuntu
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4270 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-15 18:24:47 +00:00
csoler
35354bb73c added missing include
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4269 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-15 18:18:36 +00:00
drbob
d83c58f3f5 Various BugFixes and extra debugging to get Proxy Connections Working.
* Added Lots of Debugging!
 * Added a couple of operator<<() fns.
 * Added bdSpace::find_node() to find Destination Address.
 * Added search for Dest IpAddr before Proxy Authentication.
 * Added NOK ConnectResponse Msg if destination address unknown.
 * Tweaked bdConnection::ConnectRequestProxy() to include proxy address.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4268 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-15 16:31:04 +00:00
drbob
b22a2242ab Added Full UDP Networking stack into PeerNetQt.
Lots of testing to now be done, and callback wiring to be done.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4267 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-15 01:56:34 +00:00
drbob
48c185192d Major Step Forward: Integrated the UDP Relay into TcpOnUdp Library.
In theory we should have all the code to make DIRECT, PROXY and RELAY connections. 
Now comes the testing / debugging phase.

 * Switched tcpstream to use UdpSubReceiver instead of UdpPeerReceiver.
 * Modified tou_init to accept an array of UdpSubReceivers (either UdpPeerReciever or UdpRelayReceiver).
 * modified TOU to make it UdpStack agnostic (this allows multiple UDP Ports to be used).
 * tweaked tou.cc internals to handle either type of Receiver.
 * added new connect() function for initiating Relay Connections.
 * Added missing Container Helper Functions to udprelay.cc
 * Added back udpstunner.cc to libretroshare.pro
 * modified libretroshare to work with the new interfaces.
 * added (commented out) example of how the full udp stack will be initialised.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4266 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-15 01:54:51 +00:00
drbob
02b6dab081 Finished Basic Implementation of UdpRelay code. This will be inserted into TOU for Relayed connections.
* added udprelay to libretroshare.pro
 * FIXED joss' BUG. Revision 1906. (caused 1.0.0.0:1 in IP serialisation) WTF!
 * added missing return in p3tbidht.
 * Lots of improvements to udprelay




git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4264 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-14 22:31:03 +00:00
drbob
355fac69ef Added constness to lower level function "sendPkt()"
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4263 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-14 22:27:02 +00:00
drbob
4f8431ebf8 Second Checkin of PeerNetQt. The client will now make DIRECT connections, and you can chat over TcpOnUdp.
* Added commandline options to allow GUI-free, fixed port, restricted ports, and different config path.
 * Re-organised PeerNet startup to allow various options.
 * Added UdpStunner into Udp stack, and display of ExtAddress.
 * Expanded PeerStatus to cover both DHT status and Connection status.
 * Added TOU connection logic.
 * Added FailedPeers -> so you can see who tried to connection to you.
 * Added Mutexes to protect state data.
 * Filled in ConnectCallback().
 * Added PeerActions for CONNECT, AUTHORISE & START_UDP, completing the loop.
 * added tick() for executing actions and handling connections.
 * Added Connect Auth Checks.
 * Added Send/Recv Messages for Chat.
 * Added GUI components to handle above.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4256 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-13 13:02:32 +00:00
drbob
4032f8242c Second stage of improved bitdht check-in.
* Added Port Restricted Udp Layer, to simulate firewalled peers locally.
 * Corrected LossyUdpLayer implementation as well (not tested).
 * added bdsockaddr_clear() function to bitdht::utils.
 * Added Parsing of incoming CONNECT msgs.
 * Corrected Connect stats.
 * added connection tick().
 * Fixed up basic Connection starting & Timeout cleanup.
 * Added lots of Connection Debug.
 * Added in missing transIds.
 * Added Check for "Similar" connections, to avoid duplicate attempts.
 * Filled in bdConnectionRequest functions.
 * Added beMsgGetBdId decode function.
 * Unified CONNECT_MODE flags.
 * Corrected bdPrintTransId bug (bad chars)
 * Tweaked bitdht startup parameters (NUM_PEERS & STARTUP TIME) for testing.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4255 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-13 12:54:03 +00:00
drbob
006a5f3011 Added udpstunner back into libretroshare. Fixed a couple of bugs to make it compile.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4254 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-13 12:43:40 +00:00
drbob
e2a18750c1 Added small Qt GUI program to test out network connectivity.
This is just the initial check-in much to still do.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4252 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-11 12:45:20 +00:00
drbob
590ef5bd09 Tweaks to libretroshare for the connection system
* Started writing the UDP Relay code... lots to do here!
  * Added dhtConnectionCallback() dummy function for bitdht interface.
  * altered sslfns for APPLE for easy compilation.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4251 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-11 12:39:57 +00:00
drbob
6b8f66a22b Start of major improvements to bitdht. This checkin adds the bulk of the
code for UDP connection setup. The code compiles, but is not yet functional.

Specific changes:
 * Added srcId to PotentialPeer calls, to determine possible proxies.
 * Added PotentialProxy list to bdQuery() code.
 * Tweaked bdspace::find_nearest_nodes() to include peer flags.
 * added bdconnection.[h|cc] files, these contain most of the new code.
 * Added ConnectionRequest() ConnectionAuth() and ConnectionCallback() to interface
 * Added new connection messages to bdmsgs.cc
 * Added stats for new connection messages.
 * separated send_query() into own function.
 * Added bdStdLoadNodeId() to allow id to be imported from a string.
 * Added Export of bdSpace::getDhtBucket() for external display.
 * moved various definitions to bdiface.h for external use (bdPeer, bdBucket)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4250 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-11 12:34:11 +00:00
drbob
fb0ce727e0 Created a experimental V0.5 branch for testing various networking improvements.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4237 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-07 12:32:11 +00:00
thunder2
0dd77f6f27 Optimized the functions for the forum messages.
- used "const std::string&" for the parameters
- used "std::map" for the read status
- removed useless variables
Added new define DEBUG_FORUMS in ForumsDialog.cpp.
Added function to generate mass data for the forum messages.
Fixed german language for the FriendsDialog.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4236 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-06 21:44:16 +00:00
thunder2
9fb2ddfec0 Added a placeholder text to the message list in the MessagesDialog (currently used when Starred is selected).
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4235 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-05 20:19:10 +00:00
defnax
3b89616334 update translation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4234 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-05 14:20:16 +00:00
thunder2
a5ccab9a13 Connected the menu actions reply, reply all and forward in MessagesDialog. Now they work again.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4233 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-05 13:37:49 +00:00
thunder2
11a56d2737 Added missing Q_OBJECT to TreeStyle_RDM and fixed translation.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4232 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-04 23:44:17 +00:00
thunder2
57ec7b34ce MessagesDialog:
- Renamed "Favorite Tags" to "Quick View".
- Added the quick view "Starred" to the list to show all messages signed with a star.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4231 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-04 22:54:03 +00:00
thunder2
7661f4486d Redesigned the MessagesDialog to open the message in a new tab or new window for reading.
The MessageComposer is now only for writing a new message or editing a message from the draft box.
Added a new setting to the MessagePage.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4230 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-06-04 00:46:02 +00:00
defnax
50e243adf6 clean up the code
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4229 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-31 21:51:15 +00:00
defnax
b139ce2d88 Added a second tab for Router Statistics
renamed Tunneling to Router Requests


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4228 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-31 21:39:44 +00:00
csoler
0baaa271e9 added missing info for search depths
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4227 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-31 21:22:18 +00:00
defnax
00d6ec3c1f Added to store splitter position on TurtleRouterDialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4226 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-30 23:06:22 +00:00
csoler
68e679873d improved color code of previous commit
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4225 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-28 22:29:06 +00:00
csoler
429d6f2dc3 improved tunnel statistics gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4224 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-28 22:25:42 +00:00
csoler
7edcf59116 moved TR filtering to beginning of TR handlign function. Makes it more consistent w.t.r. the displayed turtle statistics
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4223 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-28 20:36:52 +00:00
csoler
f3ca5b9941 added automatic limitation of turtle search and turtle tunnel requests as a function of current traffic
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4222 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-28 14:39:47 +00:00
csoler
4d846513e2 added additional statistics from turtle router. Needs full recompilation.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4221 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-26 22:11:06 +00:00
thunder2
265650c88d Moved the star to the first column in MessagesDialog.
Fixed debug output in FriendsDialog.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4220 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-24 23:35:11 +00:00
thunder2
b1953fd769 Show the selected tag in the tab title in MessagesDialog.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4219 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-24 13:15:43 +00:00
csoler
eae57516c5 Included patch to compile on OpenSUSE 11.4 (from AsamK)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4218 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-24 10:25:43 +00:00
thunder2
c45e7562bb Added a star column for messages.
Recompile of the gui needed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4217 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-23 23:45:31 +00:00
csoler
3f21835114 added a display of turtle search/tunnel requests over time, to help spotting potential spammers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4216 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-23 21:45:25 +00:00
defnax
0429baf807 Added to sort by Age when one day, one week or one month is selected
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4215 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-21 18:34:34 +00:00
notdefine
a748f88686 Fixed compile Problems on Ubuntu LTS
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4214 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-21 17:54:44 +00:00
thunder2
f14b529009 Added tags to the MessageComposer.
Added context menu to contact list in MessageComposer.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4213 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-21 16:26:00 +00:00
thunder2
4c13280fed Show the RetroShare id of the peer and the signers of the key in ConfCertDialog as clickable links.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4212 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-18 21:23:26 +00:00
csoler
c3f2f788c4 updated french translation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4211 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-18 12:04:00 +00:00
drbob
29edfff524 Disabled the CACHE_OPT code, until the duplicate cache entries is fixed.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4210 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-17 19:57:29 +00:00
drbob
d208fa3c37 re-worked printcache to analyse a large batch of cache files.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4209 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-17 18:03:05 +00:00
defnax
2f1c9b713b renamed class PeersDialog to FriendsDialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4208 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-17 17:27:47 +00:00
drbob
94d526193c fix debug output
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4207 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-17 15:04:27 +00:00