Commit Graph

713 Commits

Author SHA1 Message Date
notdefine
57cb79a7e1 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@514 b45a01b8-16f6-495d-af2f-9b41ad6348cc 2008-04-24 07:03:31 +00:00
drbob
77342705ea BUGFIX: Mutex remained locked if Upnp setup failed.
This caused the freezing on many people PCs.  It happened if 
	(1) Networking was set to Automatic.
	(2) UPnP was not available.

But its fixed now!




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@513 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-22 11:45:28 +00:00
chrisparker126
32cfbb8c80 add Qblogs header file for services
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@512 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-22 08:20:36 +00:00
chrisparker126
1381143133 removed pointer usage, and hid attirbutes from interface
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@511 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-22 08:19:02 +00:00
chrisparker126
100db5effc changed documentation script to gen subfolders
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@510 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-22 08:17:00 +00:00
chrisparker126
7f964076a1 new interface for retroshares QkBlog (TB renamed rsQkBlog)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@509 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-20 11:11:03 +00:00
drbob
129c07a553 Third attempt at link rank system.
* Added Anonymous links, stored in configuration file.
 * Friends recommendations are also shared anonymously with peers.
 * Own recommendations are shared with friends.
 * TODO include ranking (+2 <-> -2) in score.
 * some bugfixes too.

Added RandomId to p3service file.
Improved forum interface.
Added dummy forum system (not transmitted) for testing.
Switched on new features as well.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@505 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-15 16:35:46 +00:00
chrisparker126
2def35c6f2 script to gen rs documentation, pls comment your code JAVADOC style
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@504 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-15 12:37:31 +00:00
chrisparker126
83316559ba config file for doxygen, pls comment your code JAVADOC Style
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@503 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-15 12:36:04 +00:00
drbob
949f5ae8b8 Added net_test1 to Makefile
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@502 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-15 11:25:44 +00:00
vinnyx
786e1ff65c added net_test1.cc - unit tests for pqinetwork.cc
modified pqinetwork.cc - isPrivateNet() and sameNet()


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@501 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-15 10:05:33 +00:00
drbob
a8d18793d9 removed net_test1 from tests (code not commited)
switched back to "release mode" in p3face-startup.c



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@495 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-09 15:13:05 +00:00
drbob
94371600be Fixed upnp issues
* Removed periodic Check and thread.
 * Added Shutdown.
 * switched to terminating background thread.
 * removed temporary lease.
 * A bit of a HACK - this class could be cleaned up significantly.

Adding the start of forums/channels.
 * Dummy Interface and Forum data (so GUI work can start)
 * rough p3distrib - needs a lot of work.

Added shutdown function to p3connmgr, to shutdown Upnp.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@493 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-09 12:54:15 +00:00
chrisparker126
f67a99e704 added pure virtual GlobalShutdownFn to ensure snapshots compile
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@483 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-06 22:34:43 +00:00
chrisparker126
b8d4bd5ff1 implemented global shut down function, yet to include calls to release
upnp held resources


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@482 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-06 20:57:36 +00:00
chrisparker126
518b696b27 implemented global shut down function, yet to implement calls to upnp
held resources


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@481 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-06 20:56:27 +00:00
chrisparker126
9d2255beb1 restoring original config-linux.mk file
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@480 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-06 19:37:20 +00:00
chrisparker126
d8211ca03e restoring original make.opt file
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@479 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-06 19:31:20 +00:00
chrisparker126
27b37b7532 replaced original files for make.opt and config linux scripts
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@478 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-06 19:18:09 +00:00
chrisparker126
a82af857ea added global shutdown function, need to update GUI 'quit' function
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@477 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-06 17:20:18 +00:00
drbob
12d3606ad4 * Enabled saving of data rate limits.
* Fixed Lost certificates issue(!)
 * Tweaked Tick rate parameters.
 * Added new chatAvailable interface fn.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@469 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-04 12:19:50 +00:00
drbob
7f48353193 Changes for univeral build.
NB: This must be done in two parts. and then two libraries combined.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@467 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-03 18:37:33 +00:00
drbob
2a485cf6eb Final changes for Windows V0.4.06a
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@466 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-03 17:30:08 +00:00
drbob
6c90e1ad67 * HACK: fixed mem issues with file data - not ideal
* removed more debug: filedata prints.
 * removed rank/photo/games from setup for release (#define RS_RELEASE)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@464 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-03 14:34:52 +00:00
drbob
053e119e1c Added ConfigSave Indication when a Msg has been read.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@462 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-03 13:01:42 +00:00
drbob
99aab9cea4 * Memory Leak fixed in BinaryData.
* Fixed up Variable Ticking -> max = 1.0 sec now.
 * Removed debug output which was massively increasing CPU load.
 * Removed some old code from p3face-server.cc



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@461 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-03 12:51:28 +00:00
drbob
d69c2f72f1 * Fixed up various memory leaks (mainly serialiser cleanup).
* Added pthread_detach() to allow proper thread cleanup (affected ony Linux!)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@460 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-02 13:55:45 +00:00
drbob
a0247d39d1 Forgot this file!
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@453 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-31 21:29:17 +00:00
drbob
5e41b21cef Lots of bugfixes and tweaks:
* Switched p3Ranking to share Friends Links as well as own.
 * Modified rankmsgs to contain source id.
 * Fixed up rsNotify, added pqiNotify and global function call to get it.
 * Added notify for Bad Incoming Directory
 * Added Emergency Incoming directory so RS can keep running.
 * Added notify for Bad Packet (connecting to V0.3.X)
 * Added notify for Incomplete Packet Read (not been triggered yet!)
 * added close() to BinInterface, close on pqissl calls reset() 
 * removed exit(1) calls from pqistreamer, replaced with bio->close().
 * Increased Maximum Packet Size for HTML messages.
 * Fixed Online/Offline Message Forwarding. (TEST).
 * Increased DHT bootstrap buckets to 4.
 * Cleaned up much of serialiser debug (was slowing down Mac)
 * Added directory path to File Listings.
 * added ConvertSharedFilePath() so correct local dir can be found.
 * Added ForceDirectoryCheck() and InDirectoryCheck() for file hashing.
 * removed old TMP cache loading.
 * switched off Cache debug.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@448 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-31 14:06:59 +00:00
drbob
8d3f9a3ec6 Important changes to tighten up the connection methods:
* Switched to miniupnpc-1.0
 * modified miniupnpc to add lease duration.
 * set lease duration to 1 Hr.
 * Modified configure scripts to use miniupnpc-1.0

 * added TIMEOUT to all connections (5 sec for TCP - Important!)
 * reduced TCP offset delay to 2 seconds.
 * BUGFIX: Added missing connect_parameter wrapper function.
 * added reset to other connection methods when connection is made.
 * Added Connection Type (TCP/UDP) information to feedback/GUI

 * Increased default Data Rates: from 50/50 to 100/500 kB/s
 * Removed Default Bootstrap Ids. (only automatic now!)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@423 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-26 15:35:09 +00:00
drbob
048e84630e Changes to upnp interface to support miniupnpc-1.0
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@421 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-26 02:41:01 +00:00
drbob
6370582c9d Commented out 'Universal Binary' Options for the moment.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@412 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-24 14:20:48 +00:00
drbob
1024330b1d Increased DHT Bootstrap BINS to 2.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@410 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-23 22:41:17 +00:00
drbob
0c0147abe6 BUGFIX: Big BUG in External Port notification! FIXED.
An invalid comparison was being made - meaning the EXT_PORT_FLAG was not set.
 This can lead to failed connection attempts.

Added dht_check_peers program.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@409 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-23 22:27:43 +00:00
drbob
d335e37c8d BUGFIX: Authenticated friends were being dropped from Peer Lists at restart.
A config save is now triggered after an Authentication to fix this issue.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@408 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-23 19:29:42 +00:00
drbob
72823768bb BUGFIX: Config MetaFile, and Signature File now saved in correct directory.
BUGFIX: forceExtPort now initialised.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@407 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-23 19:11:36 +00:00
drbob
246bd80190 Changes to build system to support universal binaries on MacOSX.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@400 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-22 14:34:53 +00:00
drbob
247e583a35 Addition of a new Automatic DHT Bootstrap system. This will need to be tweaked as the numbers of users increase.
* hashed keys are posted to specific DHT entries, to create a series of bootstrap lists.
 * these are fetched as needed to bootstrap new clients.
 * Modified Bootstrap monitor program.

Created a minimal backup bootstrap list (temporary)
Added "-e" option to commandline to force 'external port' mode
Bugfix for multiple connection methods, could kill an active connection.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@397 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-21 19:06:34 +00:00
drbob
7044822e1f Addition of several utility functions:
(1) xpgp_id to extract the name/id from a certificate.
(2) dht_bootstrap to check the status of the bootstrap peers.

Various bits of code needed to be rearranged to make these utilities possible.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@394 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-21 02:02:58 +00:00
drbob
79023e7c7c Improvements to the Games Launcher.
Addition of new Bootstrap Peers.
Completion of rsgameitems serialiser.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@383 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-17 14:24:56 +00:00
drbob
fb229c96da Addition of improvements to photo service - can now add local photos - but these are not shared over the network yet.
Added HashFile() utility function.
Also added updated() functions to ranking and photos, so the GUI can update itself when necessary.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@381 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-17 13:51:04 +00:00
drbob
0a9382cea5 Moved p3notify to pqi directory to fix compile order.
This is a bit of a hack, and should be fixed later.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@379 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-06 12:07:54 +00:00
drbob
7eeb4420fe Modifications to Game Launcher to fixup the display of names / status.
Added Date check to DHT Server File, so we don't download each restart.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@378 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-05 19:03:51 +00:00
drbob
0bdc3522a6 Improved the bootstrap Stun system.
* searching for STUN ID's continues until RS_STUN_FOUND_MIN are found (10).
 * abandon STUN search if Ext or Upnp mode.
 * add Bootstrap IDs to rear of mStunList. (bugfix)

Force saving of certificates after "oldFormat" loading.
Corrected printStunList() fn call.

Added a notification system: 
 (1) libretroshare System Notifications.
 	- System notification if Firewall Status is bad.
 (2) PopUp messages.
 	- Popup for a connected peer.
 	- Popup for a new message.
 * New interface (to be revised).



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@376 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-05 16:32:18 +00:00
drbob
08860b25e6 Addition of two more Services / Applications.
(1) A PhotoService / Dialog to share slideshows.
(2) A Network View service, derived from p3disc for a graphical view of peers.
Both of these need a little help to get them fully functional.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@375 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-04 21:31:11 +00:00
drbob
3ed1eef186 Switching default compilation back to Linux.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@374 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-04 15:03:36 +00:00
drbob
fd1beee309 More Tweaks before first release.
* Switched on RELEASE flag.
 * renamed incomplete work to "Unfinished"
 * updated version strings.
 * Added Configuration path to DhtMgr.
 * reduced uPnP timeout to 30 seconds (from 60).
 * more Bin -> BinToHex printouts.
 


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@373 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-03 16:01:25 +00:00
drbob
9bdd44d0f5 Changes required to get Retroshare V0.4 working under windows.
Most of these changes relate to:
 (1) rand() is different 
 (2) sleep() don't exist on Windows.
 (3) networking headers are different - these need to be cleaned up in general.
 (4) disabled tests that won't compile on Windows.

Will probably have to rollback some of these changes for Unix later.





git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@372 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-03 14:41:15 +00:00
drbob
9e954e9c0f Tweaks to the GUI side.
* Fixed the fonts, and default entries in GamesLauncher.
 * Shifted all the unfinished stuff to "In Development" section.
 * Fixed smplayer/rs project files.
 * duplicate variable in p3connmgr.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@371 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-03 14:12:39 +00:00
drbob
85aa75ef5d A series of small bugfixes - as we head towards the first v0.4 release.
* Added stun bootstrap functionality.
 * Added in two temporary StunServers.
 * Reconnect attempts are TCP only.
 * enabled AUTOCONNECT and TCP Connections.
 * reduced UDP keepAlive timer to 15 secs.
 * made UPnP the default startup behaviour.
 * Removed StunId raw printouts -> now use BinToHex()
 * Unified TTLS and PERIODS in p3dhtmgr.h
 * DHT bugfix (data not passed to ConnMgr).




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@370 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-03 14:01:52 +00:00
drbob
63828f77a8 Significant improvements to DHT behaviour, and reconnection attempts.
* Added GUI interface for auto connect state.
 * Added HTTP retrieval and storage of DHT peers update.
 * Added code for partial recv() from DHT peers.
 * Disabled Chat/Disc/Udplayer/tcpstream debug output.
 * Added Unreachable Check to connMgr.
 * Added auto reconnect functions to connMgr (#define to disable).
 * Restructured DHT notify code... much cleaner.
 * DHT now flags out of date DHT results.
 * DHT notifies ConnMgr on any results (same or diff).
 * Added Fns to cleanup old udp connection.
 * other bugfixes.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@369 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-03-02 14:25:59 +00:00
drbob
2dc2954f40 Added Code to detect Symmetric NAT (BAD!) Firewalls.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@361 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-28 15:58:54 +00:00
drbob
6dd3d30d8e Additions to tcponudp to add a TouKeepAlive system.
This is only used if we are in 'firewalled' mode.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@360 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-28 10:43:33 +00:00
drbob
31454138b7 Fixed up some Upnp issues:
* Enabled a lease duration (requires mods to miniupnpc library)
 * this is set at 10 mins for the moment.
 * Added Check functions to see if UPnP forwarding is still up.
 * improved error checking in Forward() function.
 * added #define for UDP local address testing.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@359 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-27 15:43:02 +00:00
drbob
8b230a55cf Significant changes to aid UDP connections.
* Added Period and Delay parameters to connections.
   - Delay is used to avoid simultaneous TCP connections.
   - Period is used to regulate UDP connections.
 * added Delay code to pqissl.
 * added Period code to tcponudp / pqissludp.
 * modified TTL modification code.
 * increased SynPktRetransmit value.
 * fixed retrans() timeout (one reason code wasn't working before!)
 * fixed tou_close() SEGV bug.
 * modified pqissludp tou_socket creation. (non permanent now).
 * Modified format of peerConnectRequest() CB to make it more useful and rewrote function.
 * Enabled pqissludp NetInterface.
 * using Id comparision to determine Active/Passive UDP connection state.
 * added #def to disable TCP connections. (for testing)
 * enabled UDP connections from retryConnect() function.
 * corrected EXT check in retryConnect() function.
 * + lots of debug output and other stuff.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@358 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-27 02:32:20 +00:00
drbob
e87b7b75e7 Various Bugfixes:
* Clear discFlags before creating DiscItem packets.
 * Don't call stunStatus/peerStatus if refering to self (p3disc).
 * Expand allowed listen port range.
 * Limit max size of stored StunList.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@357 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-26 18:55:16 +00:00
drbob
b64b88df4a Added EXTERNAL flags to p3disc callback (peerStatus).
Corrected id->hash  for p3disc callback (stunStatus).



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@356 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-26 16:52:50 +00:00
drbob
06cb9e0121 Added a seperation between 'desired' net mode and 'actual' net mode
this is needed for accurate stunlist creation. Also added stunStatus
calls from discovery.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@355 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-26 16:14:13 +00:00
drbob
685182ff0b Modified DHT to notify of all possible stun peers, as it doesn't know whether we need to stun or not.
Added a Type parameter, so that the connection Mgr can determine if there is
an external port available or not.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@354 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-25 23:56:23 +00:00
drbob
100a7aea82 Changed DHT string output to use std::ostringstream, as snprintf wasn't working
with inet_ntoa.... also added some other debug and fixed notifytxt.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@353 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-25 21:39:08 +00:00
drbob
3f582afe5a enabled dht, and tweaked some parameters.
disabled notification checks if ext ports.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@347 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-11 23:27:17 +00:00
drbob
98a14ba715 Tweaks to get the UPnP working. Corrected network address passing,
and also adjusted DHT timeout periods.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@345 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-11 16:27:55 +00:00
drbob
276a6bbd99 Added Cache's to retroshare configuration.
* Completed CacheConfig serialisation.
* Switched to Push Cache Mode (faster and more efficient).
* Added CancelCacheTransfer() if we have duplicate HASH / CACHEID.
* Store remote and local caches.
* cleanup all cache directories.
* Broke Cache tests :(  - because of dependency of mAuthMgr/mConnMgr.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@343 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-09 12:47:45 +00:00
drbob
1bb4283986 Tweaks to debug connections.
* bool / int mismatch bug in tou_extaddr()
* extra debugging to p3connmgr
* fixed connect error in p3connmgr.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@342 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-08 17:05:55 +00:00
drbob
3e1b155f1a Completed Basic configuration storage:
* Added read/writetofile() fns to BinMemInterface
 * Added SignData() fns to AuthXPGP.
 * Added Certificate saving to AuthXPGP.
 * added Signatures to Configuration.
 * now discards messages if Hash is wrong (p3msgservice)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@341 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-08 12:39:40 +00:00
drbob
806b8285f2 Lots of little changes to libretroshare. Improvements mainly focused
on configuration storage and loading:
 * Improved Configuration Manager (almost finished)
 * Mutex protections for Configuration system
 * added Configuration storage to p3ConnectMgr.
 * added Configuration storage to p3MsgService.
 * bugfixes in p3GeneralConfig.
 * Added Config Save notification where necessary.
 * added safe FinalConfigSave before exit().
 * added RsPeerNetItem + RsPeerStunItem (serialiser)
 * reordered startup for correct config loading.
 * enabled Loading of certs in AuthXPGP.
 * move sockaddr_clear() to util/rsnet.h
 * switched p3MsgService sendMessage checking to pqiMonitor syste,.
 * corrected pqiarchive saving of PeerIds.
 * added setNetworkMode() & setVisState() to p3ConnectMgr.
 * added Mutex protection to p3ranking.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@336 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-07 16:18:34 +00:00
drbob
2c69fd7eaf Finished off the basic Link Ranking system.
* added serialiser types.
 * finished streaming on p3ranking.
 * removed Bandwidth limitations from BinFile / BinMem.
 * added bytecount() to BinInterface.
 * moved the CacheTransfer creation to Startup.
 * added ranking to CacheStrapper & server tick() system.
 * Tweaked LinksDialog for final touches.
 * enabled downloads from Messages.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@335 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-05 13:45:04 +00:00
drbob
925b1a780e Completed Mutex protection for chat, msgs, and disc services.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@334 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-04 21:40:34 +00:00
drbob
54063ab434 switched stun packet byte layout to network-byte-order.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@333 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-04 18:24:15 +00:00
drbob
8527a5e53f Fixed up the retroshare message system.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@331 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-04 17:55:13 +00:00
drbob
07a458367b Addition of sorting algorithms to the LinksDialog.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@330 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-03 16:43:03 +00:00
drbob
63e177b6ef forgot the #include "util/rsnet.h"
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@329 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-03 12:13:55 +00:00
drbob
31136da7cc Modifications to fix some networking/endian issues on PPC OSX.
* added sockaddr_clear() function to zero network addresses before use.
* used this function in p3connmgr.
* added htonll() and ntohll() functions to rsnet.h with compile-time ENDIAN checking
* use htonll() and ntohll() in serialiser.
* added net_test.cc to check network/endian/inet_addr issues.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@328 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-03 12:07:59 +00:00
drbob
cea158b77d Add the ranking interface file.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@327 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-03 06:32:00 +00:00
drbob
06aae24efd * Addition of almost completed p3ranking class - still streaming / ranking to do.
* Major modifications to p3disc to use the new AuthMgr and ConnMgr.
 * Modified RsDiscItems to match new p3disc.
 * Modified ConnMgr to accept information from p3disc.
 * Addition of new Load/Save Certificate From/To Binary to AuthMgr.
 * Corrected default build to Linux.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@325 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-03 06:29:02 +00:00
drbob
3451af6152 Changes to libretroshare to make the system compile on Mac OSX 10.3
* minor changes to networking headers.
* addition of several virtual destructors (remove warnings)
* switched Makefiles to new system.
* added macosx specific configuration file.
* removed KadC compilation checks.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@324 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-02-03 06:17:33 +00:00
drbob
798e19d58c Conversion of the SSL connection methods.
* Added new XPGP functions to checking certificates.
* Converted SSL classes from cert * -> p3AuthMgr.
* Added check of addresses before connect attempt.
* started up listener correctly.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@319 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-28 05:40:32 +00:00
drbob
bfb0b2be2b Modifications to chat and msgs to allow wchar_t messages
(support for multiple languages)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@317 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-26 13:00:57 +00:00
drbob
c7ce92aba2 Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the rsiface code.

Addition of new Retroshare Interface for Peer/Neighbour control.
Mods to notifytxt to use new interface.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@315 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 08:01:40 +00:00
drbob
fd8adceb7e Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the rsserver code.
Major changes to use the new networking code. Added
p3peers.h as a new interface for peer/neighbour management.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@314 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 07:58:29 +00:00
drbob
7c2d5611bd Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the server code.
Changes inline with p3authmgr.h, and conversion of
the configuration storage to p3cfgmgr.h




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@313 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 07:54:31 +00:00
drbob
9ba4549133 Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the serialiser code.
Added serialisation of Key-Value pairs Config message.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@312 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 07:52:46 +00:00
drbob
37d6a4b968 Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the services code.
Modifications to match the switch to p3connmgr.h and p3authmgr.h



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@311 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 07:49:28 +00:00
drbob
059d43244a Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the upnp code.
Modifications to use the new generic p3upnpmgr.h interface.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@310 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 07:25:05 +00:00
drbob
456325dc08 Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the dht code.
An interface to a second new DHT system (OpenDHT) has been added.
This has a number of features that make it preferable to the KAD dht network.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@309 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 07:22:15 +00:00
drbob
e28c8a846f Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the util code.
added some more utility functions for HexToBin & Hashing.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@308 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 06:45:12 +00:00
drbob
2780be3931 Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the dbase code.

only minor changes: 
rename loadCache->loadLocalCache to avoid clash.
switch to new monitoring system in cachestrapper.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@307 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 06:42:55 +00:00
drbob
6435357c07 Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the pqi code, 
and provides the majority of the improvements.

(1) Introduced new interfaces for DHT and UPnP abstraction: p3dhtmgr.h, p3upnpmgr.h
(2) Introduces abstraction for Authentication: p3authmgr.h
(3) New Connection Manager to coordinate networking code: p3connmgr.h
(4) New Configuration Manager: p3cfgmgr.h

This library has been significantly modified to support DHT synced connections
to enable connections between Firewalled Friends. The connection code has
been rewritten within a new framework, which should make extensions easier to code.

Also removed significant amount of old code relating to Tunnels, Channels etc.
This will be recycled later as higher level services that should not be
part of the core networking library.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@306 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 06:36:40 +00:00
drbob
de0ce110b9 The first commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack.

This check-in commits the changes to the TCPonUCP code.

This library has been significantly modified to support
multiple UDP "connections" from a single port.
This requires some trickery and a listener thread.
Code to "STUN" peers was also added.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@305 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-25 06:11:39 +00:00
drbob
905e1ee66a Added missing destructor functions.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@303 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-21 10:40:49 +00:00
drbob
0712590a99 * Addition of the basic Games Launcher - used to organise networked games with peers.
* New external interface for launcher (rsiface/rsgame.h)
* changed pqiservice type Ids from int -> uint32_t.
* added NO_DELETE option to pqistreamer.
* added HASHDATA flag for BinInterfaces





git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@301 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-21 09:22:42 +00:00
chrisparker126
983efff1c0 initialial doxygen documentation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@289 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-10 22:19:00 +00:00
chrisparker126
bbd3c17b6d completed: compiles but not debugged
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@287 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-06 13:07:20 +00:00
chrisparker126
1ca334090f added licence info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@286 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-01-06 13:05:32 +00:00
drbob
46a001af47 Final changes to add the new serialiser.
- added Chat / Msg and Disc services.
- expanded rsiface to handle new serialiser.
- mods to rsserver with new conversions etc.
- added service directory to Makefile.
- removed PROXY / CHANNELS from make.opt



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@276 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-12-12 01:43:17 +00:00
drbob
d9efb76b01 Modifications to bring in the new serialiser:
- Switched to 64 bit lengths for files.
- Switched to new data types (RsItem).
- Moved Msg and Chat to services.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@275 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-12-12 01:39:09 +00:00
drbob
2c9c31eaf0 Major changes to the networking core of retroshare to introduce the new serialiser.
- Added new serialiser (PQItem -> RsItem), removed old one.
- switched packet sorting from ChanId (array of ids) to PeerId (string)
- introduced cleaner service interface (pqiservice).
- moved p3disc to service interface.
- modified streamers to use the new serialiser.
- moved msg/chat to service interface.
- removed old source code. (supernode / p3loopback).

I've disabled UDP connections / Proxy and Channels for the moment.
The code it still here, but is not compiled. The Proxy and Channels 
will become services, and the UDP connections will be reworked 
in the near future.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@274 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-12-12 01:29:14 +00:00
drbob
07d33009b9 - Removed old file indexing code.
- Switched file sizes from 32bits -> 64 bits so rs can handle large files.
- combined Cache/Service Ids are now located in serialiser/rsserviceids.h



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-12-12 01:08:31 +00:00
drbob
470ceaa73b Changes to configuration scripts to remove CHANNELS/PROXY compile options.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@272 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-12-12 00:58:28 +00:00
drbob
393110a4ed Addition of a util platform independent networking header file.
(mainly for the serialiser's benefit)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@271 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-12-12 00:56:46 +00:00
drbob
e8ccb0b427 Major improvements to the serialiser to make it work with retroshare.
This is still a first draft - the message types will surely change.

-corrected ids and added service classes.
-Added disc/msg/chat/cache/file messages
-Extended serialiser to handle service extensions.
-corrected IpAddrPort code.
-More debugging code.
-Added some tests.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@270 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-12-12 00:54:42 +00:00
drbob
0a32122ada Added the first top-level serialiser test for rsfileitem.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@265 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-22 04:04:13 +00:00
drbob
8f63b77a57 A couple of fixes to make TLV compile.
added tlvconfig_test to regressions.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@264 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-22 02:28:28 +00:00
chrisparker126
7da0e9b3f3 test file for last four tlv objects
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@263 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-20 01:13:31 +00:00
chrisparker126
72d46a5f3b merged r249 and 250
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@262 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-20 01:02:22 +00:00
chrisparker126
75694f0701 temporary
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@255 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-18 00:02:45 +00:00
chrisparker126
18126f6eb7 temporary
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@254 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-18 00:02:32 +00:00
chrisparker126
9815664fcf temporary
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@253 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-18 00:02:09 +00:00
chrisparker126
22ae522fd6 woohoo
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@252 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-17 23:57:55 +00:00
chrisparker126
23d1894b2b ### This file configures various client-side behaviors.
###
### The commented-out examples below are intended to demonstrate
### how to use this file.

### Section for authentication and authorization customizations.
[auth]
### Set store-passwords to 'no' to avoid storing passwords in the
### auth/ area of your config directory.  It defaults to 'yes'.
### Note that this option only prevents saving of *new* passwords;
### it doesn't invalidate existing passwords.  (To do that, remove
### the cache files by hand as described in the Subversion book.)
# store-passwords = no
### Set store-auth-creds to 'no' to avoid storing any subversion
### credentials in the auth/ area of your config directory.
### It defaults to 'yes'.  Note that this option only prevents
### saving of *new* credentials;  it doesn't invalidate existing
### caches.  (To do that, remove the cache files by hand.)
# store-auth-creds = no

### Section for configuring external helper applications.
[helpers]
### Set editor to the command used to invoke your text editor.
###   This will override the environment variables that Subversion
###   examines by default to find this information ($EDITOR, 
###   et al).
# editor-cmd = editor (vi, emacs, notepad, etc.)
### Set diff-cmd to the absolute path of your 'diff' program.
###   This will override the compile-time default, which is to use
###   Subversion's internal diff implementation.
# diff-cmd = diff_program (diff, gdiff, etc.)
### Set diff3-cmd to the absolute path of your 'diff3' program.
###   This will override the compile-time default, which is to use
###   Subversion's internal diff3 implementation.
# diff3-cmd = diff3_program (diff3, gdiff3, etc.)
### Set diff3-has-program-arg to 'true' or 'yes' if your 'diff3'
###   program accepts the '--diff-program' option.
# diff3-has-program-arg = [true | false]

### Section for configuring tunnel agents.
[tunnels]
### Configure svn protocol tunnel schemes here.  By default, only
### the 'ssh' scheme is defined.  You can define other schemes to
### be used with 'svn+scheme://hostname/path' URLs.  A scheme
### definition is simply a command, optionally prefixed by an
### environment variable name which can override the command if it
### is defined.  The command (or environment variable) may contain
### arguments, using standard shell quoting for arguments with
### spaces.  The command will be invoked as:
###   <command> <hostname> svnserve -t
### (If the URL includes a username, then the hostname will be
### passed to the tunnel agent as <user>@<hostname>.)  If the
### built-in ssh scheme were not predefined, it could be defined
### as:
# ssh = $SVN_SSH ssh
### If you wanted to define a new 'rsh' scheme, to be used with
### 'svn+rsh:' URLs, you could do so as follows:
# rsh = rsh
### Or, if you wanted to specify a full path and arguments:
# rsh = /path/to/rsh -l myusername
### On Windows, if you are specifying a full path to a command,
### use a forward slash (/) or a paired backslash (\\) as the
### path separator.  A single backslash will be treated as an
### escape for the following character.

### Section for configuring miscelleneous Subversion options.
[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output, and
### while importing or adding files and directories.
# global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
### Set log-encoding to the default encoding for log messages
# log-encoding = latin1
### Set use-commit-times to make checkout/update/switch/revert
### put last-committed timestamps on every file touched.
# use-commit-times = yes
### Set no-unlock to prevent 'svn commit' from automatically
### releasing locks on files.
# no-unlock = yes
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
# enable-auto-props = yes

### Section for configuring automatic properties.
[auto-props]
### The format of the entries is:
###   file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?').  All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
# *.c = svn:eol-style=native
# *.cpp = svn:eol-style=native
# *.h = svn:eol-style=native
# *.dsp = svn:eol-style=CRLF
# *.dsw = svn:eol-style=CRLF
# *.sh = svn:eol-style=native;svn:executable
# *.txt = svn:eol-style=native
# *.png = svn:mime-type=image/png
# *.jpg = svn:mime-type=image/jpeg
# Makefile = svn:eol-style=native



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@250 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-16 23:20:54 +00:00
drbob
a89e5a4784 Addition of new makefile scripts.
Addition of the new serialiser (the start anyway).
Addition of regression test system.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@249 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-16 04:45:00 +00:00
drbob
e0304cd2de Tweaked the build scripts to work with the compile script.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@248 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-16 01:36:46 +00:00
drbob
935745a08e Created V0.3.x branch and moved the head into the trunk directory.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@246 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-15 03:18:48 +00:00