Commit Graph

1901 Commits

Author SHA1 Message Date
csoler
67b6b24e63 added display for author of forum posts
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@865 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-12-03 19:39:20 +00:00
csoler
7fe41aecae suppressed uninitialized memory read.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@860 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-12-01 12:41:09 +00:00
ewensun
3453604c4d remove temporary file when cancel file transfer
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@859 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-30 21:43:51 +00:00
drbob
9f727e2d94 Bugfixes for correct Channels display.
* Corrected search in ftserver.
 * Updated avail in controller FileDetails.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@858 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-30 17:17:28 +00:00
ewensun
00a0fdfbbf add code for cancen file transfer
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@854 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-29 22:03:36 +00:00
drbob
77cb7314bc Tweaked tabs and order. Added NewsFeed.
Added Template functions for ssl+xpgp code.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@853 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-29 20:17:58 +00:00
drbob
f5fa2f9a68 Added Function to move an 'extraFile' to another location.
This will be used to retrieve channel files.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@844 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-27 21:23:46 +00:00
csoler
d19f696278 suppressed double mutex lock
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@840 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-24 20:13:16 +00:00
raghu-dev
5c9b0b5917 added files gpgauthmgr.cc and gpgauthmgr.h
this provides the new GPG implementation 
added API to store all GPG keys in a map
added APIs to get GPG certificate IDs
added APIs to get Details from the Certificates


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@839 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-24 18:40:03 +00:00
drbob
2c64dec723 missing file for defining sleep() etc under windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@831 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-22 17:48:09 +00:00
drbob
83720439f0 Updated version numbers to v0.4.11b.
Bugfixes for 'sleep' issues under windows.
 Extra debugging for transfer module.
 Fixed channel directory creation. (extra 'break' statement)
 Fixed very slow transfers on Windows platform (uninitialised variable)
 Ready for win/linux/osx release now.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@830 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-22 17:07:11 +00:00
drbob
4610d1ddac Added Mutex protection to the core comms (pqihandler + pqipersongrp).
also added a Mutex to the ServiceServer.

  This will hopefully fix the random threading crashes.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@829 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-22 13:15:07 +00:00
drbob
c46b823261 * fixed, transfer start when subscribing to channel.
* cleaned up p3distrib callbacks.
 * added holdQueue for transfer startup in controller. 
 * fixed partial resume.
 * updated Mac script to only build library.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@828 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-21 00:10:59 +00:00
drbob
71797d6f70 Fixed compatibility bug in file transfer...
can now communicate between V0.4.9b and V0.4.11+



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@827 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-20 22:59:58 +00:00
drbob
7c596231e1 Improvements to the file transfer algorithm.
Increased max individual file speed to 1MB/s



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@826 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-19 01:12:21 +00:00
drbob
c60cf84e95 * Switched off lots of debugging.
* Tweaks to the transfer rates.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@824 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-18 21:22:58 +00:00
defnax
df7cbc58e6 * Fixed Messages Dialogs QLabels
* Fixed Online and Message Toaster to look bether .
* Update stylesheets for bold fonts for Subject,From,Date,To, Subject Text
* Set for From Text Label Blue font.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-17 03:03:23 +00:00
drbob
1c16cc8d22 Modified services to only include more complete ones for now.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@809 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-15 23:44:12 +00:00
drbob
66bf56207d * Added Configurations to new file transfer.
* Enabled config in p3file-startup.cc
 * Enabled resumeTransfers
 * Added new RsFileConfigItem to serialiser.
 * extended ftFiMonitor to use Configuration.
 * bug fix to add/remove Shared Dirs.
 * Increased Channel/forum periods to 3/12 months.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@806 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-15 20:00:29 +00:00
drbob
fce83cb232 More bugfixes ... got the basic channels file transfer working.
* Create channels directory correctly.
 * added File Transfers to Config List.
 * connected statusChange() monitor callback.
 * fixed file sources in transfermodule.
 * fixed up transfer restarts / sleeps.
 * enabled opening files read only.
 * disabled some of the debug.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@799 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-13 23:03:46 +00:00
drbob
aee6cb85b4 * More bugfixes for file transfer.
* Added File Transfer / ExtraList to channels.
 * fixed mutex deadlock.
 * added slow transfer for background tf.
 * added checks to FileRequest to accumulate peers.
 * added ExtraList callback.
 * etc, etc.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@797 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-09 22:17:20 +00:00
drbob
1e33267951 Modifications to libretroshare to enable a
build against a standard OpenSSL library... 
Still lots to do (implement AuthSSL), compiles all but final gui.
use USE_XPGP flag in build script to control it.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@796 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-09 16:52:14 +00:00
defnax
5153dca534 update openoffice retroshare README
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@793 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-07 16:53:44 +00:00
defnax
b2b8b3f575 update readme
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@792 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-07 13:15:54 +00:00
drbob
80f4686100 Bugfixes and extra debugging for file transfer.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@791 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-04 23:12:53 +00:00
defnax
6343de176e added a readme for compiling under linux from latest wiki Howto,
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@790 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-04 18:28:16 +00:00
defnax
3c6f9eff60 update readme
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@789 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-04 13:56:52 +00:00
stockpicker
db263b160c Fixes missing includes and strict gcc 4 code checks for Linux
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@787 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-02 13:53:17 +00:00
stockpicker
c222c354d6 Changes to support both miniupnpc 1.0 and up-to-date 1.2
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@786 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-02 13:33:06 +00:00
stockpicker
c0e846f7f7 Fixes missing includes and strict gcc 4 code checks for Linux
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@785 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-02 12:59:21 +00:00
stockpicker
b987d014e5 Replaced deprecated m486 flag in config-linux.mk with march=i686
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@784 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-02 12:47:43 +00:00
drbob
0d96b43d34 Enabled new File Transfer Code in libretroshare.
NB: This is not yet working. so SVN is now officially broken :(
Hope to have the bugs ironed out soon.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@782 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-02 11:38:11 +00:00
drbob
88ef2e0e34 Major bugfixes and testing changes for ft.
It is now almost ready for integration with rs.

Added ftserver3test.cc which successfully tests:
	* Hashing of a directory.
	* Transfer of Cache Files.
	* Local Searching.
	* Remote Searching.
	* Download from multiple sources.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@773 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-29 20:58:23 +00:00
drbob
889825b77e update for 64 bit interface change.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@772 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-29 20:54:43 +00:00
drbob
5e9a7d976b Updated Interface to 64 bit file size - helps fix > 2GB problem.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@771 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-29 20:53:14 +00:00
defnax
a50cd7ceb1 update readme
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@769 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-28 12:19:02 +00:00
drbob
ef9bb372b4 re-wrote ftfileprovider / ftfilecreator to be more simple and robust.
re-wrote associated tests to be more robust.
added new fttransfermoduletest.cc 



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@760 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-22 18:12:58 +00:00
drbob
38b1c02101 MacOSX Bugfix: Commandline ip addresses were not initialised properly. added clear_sockaddr() call.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@758 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-19 13:43:56 +00:00
drbob
bc98b9ea7d BugFix: DHT was not turning on.
also updated the ServerDialog with more info on exact network state.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@753 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-18 16:02:06 +00:00
drbob
95d5f38222 Added more comments describing how to start up libretroshare
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@752 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-17 22:41:31 +00:00
chrisparker126
5b2e6b2d62 simplification of qblog, only supports blogging now
- i.e. no file or profile view support


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@733 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-21 21:09:12 +00:00
chrisparker126
d14a1ffb39 simplified qblog for blogging only, hopefully test everything out soon
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@731 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-21 20:30:34 +00:00
chrisparker126
a52c34a551 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@730 b45a01b8-16f6-495d-af2f-9b41ad6348cc 2008-09-21 11:08:08 +00:00
ewensun
fa4727865c roll back to 725 again
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@728 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-17 13:18:12 +00:00
ewensun
cc41cbb708 roll back to 725
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@727 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-11 10:33:43 +00:00
ewensun
e8d21abdd5 ftFileStatus contruct failure
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@726 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-10 14:12:13 +00:00
ewensun
3af7d41d7f solve compile faults.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@725 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-09 13:08:22 +00:00
ewensun
86ffedb50d small updates for fttransfermodule.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@723 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-09 07:24:06 +00:00
ewensun
7b609a6aea implement cancelTransfer and update transfer module for debug log
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@722 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-08 14:04:10 +00:00
ewensun
9b0bfb26c2 add fileControl and fileCancel code in ftController
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@720 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-09-08 08:44:37 +00:00
drbob
174c3f7377 * Added Sourashis' work on certificate cleanup.
* Added call to function when loading certificate from a string. 
	(ie when the user cut n pastes it).
 * added return 1 call to pqipersongrp.cc




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@714 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-31 18:50:31 +00:00
drbob
f7fca4295b Improvements/bugfixes to File Transfer.
* Lots more debugging messages.
 * Fixed Sleep / sleep issue on windows.
 * added pthread / WSAStartup.
 * added ownId to ftDataMultiplex for loopback file transfer.
 * now start ftDataMultiplex thread.
 * several bugfixes in ftfilecreator



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@710 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-30 01:07:24 +00:00
ewensun
059effcfac add draft code to test ftcontroller and fttransfermodule
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@709 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-28 14:20:53 +00:00
drbob
d62876ae37 * fixes for windows
* corrected allocation in ftfilecreator



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@707 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-25 20:03:39 +00:00
drbob
f243e5f6d3 * Added lots of debugging.
* Partial bug fix for allocate algorithms.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@706 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-23 21:28:08 +00:00
drbob
7b7446c5b5 More bugfixes for file transfer stuff.
* Completed 2 basic tests (ftserver1test & ftserver2test)
 * Updated test notes.
 * debugging stderr output. 
 * fixed return code in ftfilesearch.cc
 * corrected ftcontroller run() to call fttransfermodule::tick()
 * fixed ONLINE status for OwnId (ftcontroller too)
 * corrected message sources for test harness.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@705 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-21 21:30:59 +00:00
drbob
eb8dacc798 Integration of ft into a working system.
* Made ftTransferModule compile.
 * bugfixes to make ftserver1test work.
 * New P3Pipe / P3Hub ...
 * Added Test Notes.
 * First functions added to ftcontroller
 * added isOnline to p3ConnectMgr.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@698 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-17 15:23:11 +00:00
drbob
cf7d072a5b Added missing functions to connectMgr.
Some debugging (which should be #ifdefd )
Removed old make.opt



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@691 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-16 15:40:47 +00:00
drbob
8df643596e Missed a file.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@690 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-16 15:06:03 +00:00
drbob
33032e8a83 * Modified p3ConnectMgr to enable Standalone testing of components.
* Created pqiNetAssist interfaces for DHT and UPnP.
 * Created PQIHub etc for standalone testing (in ft/pqitestor.h for now).
 * Add basics of first server test ... its not quite complete yet.
 * Improvements to ftserver.
 * Changes to many tests to match other mods.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@689 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-16 15:02:24 +00:00
drbob
189dcbb482 Completed most of ftserver class.
Also changes to make everything fit together.
changes to Interface to support srcId list.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@675 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-09 17:03:24 +00:00
drbob
d7e1a90c28 Tweaked dbase functions for ftSearch functionality.
(made a bunch of functions "const")



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@674 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-09 16:06:01 +00:00
ewensun
6f1a6e78cc fill adjustSpeed and recvFileData
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@664 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-06 04:12:36 +00:00
drbob
5c6e558942 More Improvements to FileTransfer:
* Added TlvShallowClear() to serialisers
 * Added RsQueueThread for periodic queue processes.
 * Completed ftDataMultiplex which replaces ftServer/ClientModules.
 * Added Server Queue / Thread to ftDataMultiplex.
 * Added ftdataplextest to exercise ftDataMultiplex.
 * Generalised ftFileSearch to handle an array of ftSearch classes.
 * Tweaked rsfiles.h #defines to match new ftFileSearch scheme.
 * Added Generic ftData Interfaces for Testing.
 * added ftDataSend/Recv Interfaces to ftServer + ftDataMultiplex respectively.
 * Completed much of ftServer (External Interface), but not yet done.
 * Extra debugging and small changes to ftExtraList
 * Integrated new ftTransferModule with minor interface changes.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@660 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-03 12:45:53 +00:00
ewensun
9a4fc54943 draft version for implementation of transfer module.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@652 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-29 15:18:27 +00:00
ewensun
3bcb97ff4c update according to Bob's comments.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@651 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-29 15:16:31 +00:00
drbob
79727897dd Addition of next stage of new FileTransfer Code:
* Completed rough ftExtraList class (with Test Case)
 * Added data flow interface (ftData.h)
 * Added ftDataMultiplex (server + client modules).
 * Finished parts of ftcontroller / ftserver.
 * Minor Tweaks to ftTransferModules interface for compilation.
Related Changes in other parts of the code:
 * Added new Job/Queue Thread Class.
 * Added more user-friendly directory functions.
 * Added FileInfo print operator.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@650 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-23 22:01:59 +00:00
drbob
80e1be2839 Improved the 'AutoConnect' information
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@646 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-10 21:26:10 +00:00
drbob
d36b15d526 Major cleanup of Retroshare Logging - aimed at enabling proper UDP testing.
* Switched off most of std::cerr output. (expect UPnP)
 * moved pqi/pqidebug to util/rsdebug to allow greater usage.
 * added Mutexes to logging.
 * Downgraded many log messages to DEBUG.
 * New Log messages for connections, dht and udp code.
 * Added check for bad UDP socket.
 * Added check for non-firewalled scenario.
 * Increased Storage period from 1 Month to 6 Months for Links & Blog.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@644 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-10 16:29:18 +00:00
drbob
ca69e3d5e3 Removed most of the output to stderr.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@641 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-09 09:55:09 +00:00
drbob
b58e3f7e28 BUGFIX: Stopped it producing thousands of empty files.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@638 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-06 16:38:52 +00:00
drbob
9629c6923c * BUGFIX: Multiple DHT searches / reconnect attempts (p3dhtmgr) done!
* Tweaks to the File Interface.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@636 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-06 15:05:59 +00:00
drbob
56639fd1ba * Added NewsFeed for new Message.
* Disabled newsFeed for failed connection and disconnect.
 * Switched interface file_size to 64 bits for larger files.
 * Flagged distrib groups as changed when subscribe request is processed.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@634 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-04 14:27:10 +00:00
ewensun
e0b8a14e0b git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@632 b45a01b8-16f6-495d-af2f-9b41ad6348cc 2008-07-03 13:11:20 +00:00
drbob
be392405e8 * Switched to rsFiles interface for all File Information.
* added TMP p3Files class to interface with old system.
 * cleaned up old RsControl + RsIface file information.
 * removed unnecessary functions from RsServer.
 * Tweaked interfaces for ftServer + ftExtraList.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@630 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-02 16:58:13 +00:00
drbob
473f3f75f3 * Addition of new File Transfer structure. (server / search / extralist / controller)
* Fixed up variable names in p3Qblog.cc
 * Cleaned up unused BaseInfo/PersonInfo/DirInfo in rstypes/rsiface
 * added new rsfiles interface (rough outline at the moment)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@628 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-02 13:19:59 +00:00
cppenthu
eeb13e7b18 Corrected formatting
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@627 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-02 04:05:58 +00:00
cppenthu
1db82dee51 ftfileprovider.cc - takes care of getting data from a requested file
ftfilecreator.cc -- creates a file, tracks missing chunks, timed out 
chunks etc



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@626 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-02 02:36:39 +00:00
chrisparker126
93d785b8ff added revised qblog core
* added new tlv type rstlvwide key value pair for internationalisation
* profile interface method not fully implemented yet
* blog methods implemented          
* added extra constructor to facilitate extensibility (rename packet 
type)




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@625 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-26 13:08:48 +00:00
drbob
993a5e901d Added Structure/Example for Port Forwarding Service.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@624 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-24 23:12:25 +00:00
drbob
b9ccbd54e8 Addition of new channels service.
* Addition of channels serialiser.
 * New channels interface.
 * Added Channels to startup code.
 * New CFG Id for serialiser.
 * Cleanup of old channels stuff from interfaces.
 * Cleanup of messages as well.
 * Changed file size to uint64_t



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@620 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-24 04:22:42 +00:00
drbob
d8def217fa removed duplicate function p3peers::CertToFile().
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@619 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-20 13:16:39 +00:00
chrisparker126
2059e102bf removing add config for qblog (no longer user pqi config for saving)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@618 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-20 13:04:43 +00:00
drbob
9f024eaee7 Changes to support the new NewsFeed.
* added interface to rsnotify/p3notify/pqinotify
 * added getForumInfo() to forum interface.
 * added virtual functions to p3distrib for event feedback.

New NewsFeed Notification.
 * Peer Connection/Disconnection.
 * Failed Certificate connection.
 * New/Updated Forums and Forum Msgs.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@616 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-20 12:38:11 +00:00
drbob
971ad4fe9b Added header files for new file transfer design.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@615 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-19 22:49:23 +00:00
chrisparker126
2a44784999 core modification for Qblog
*final modifications to qblog network messages: might need to consider 
wstring for profile kvsets tho
*update qblog core to hanldle messages
*updated interface with all methods we will ever need hopefully


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@614 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-19 21:34:13 +00:00
drbob
098851592c * Added isOnline to rspeers.h interface
Various improvements to get p3distrib Messages working:
 * Defensive programming in cachestrapper (forcing ownId on save).
 * Changed CONFIG_CACHE_ID to last -> to force correct loading order at startup
   This should be Config Files, Local Cache Files, then Remote Caches.
 * Hack to maintain existing Cache Files.
 * Improvments to forum_test.

Lots of work on p3distrib:
 * fixed nextCacheSubId.
 * Added new Msgs to Config Save.
 * Fixed Cache reload issues.
 * Overall: Enabled Forum Msg publication.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@611 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-16 20:37:48 +00:00
drbob
c47c751532 Added StartMinimised Option (-m as distinct from AutoLogin Option -a)
The core does nothing with this, but it can be used by the gui.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@600 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-14 13:22:39 +00:00
drbob
9c2558dbf0 Final changes as we head towards V0.4.09a release.
* Switched on RELEASE flag in libretroshare.
 * Added missing Mutex lock in upnphandler.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@598 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-13 23:22:20 +00:00
drbob
14bdaaf964 Added includes for GCC4.4
#include <stdlib.h>
#include <string.h>



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@596 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-13 16:02:36 +00:00
drbob
fe284b628a * Added rstlvimage.cc to serialiser (missed in other checkin).
* Added Forum ID to configuration Manager.
 * added proper startup for p3Forums.
 * updated forums/distrib interfaces.
 * Switch Auto-Login on by default.
 * switched out lots of debugging.
 * add RM libretroshare.a to top-level Makefile.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@594 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-13 15:42:08 +00:00
drbob
14dac82c85 Major work on distrib/forums system.
- Now creates Distribution Groups, with Admin + Publish Keys.
 - Distributes Groups + Public Keys in the Cache File.
 - Stores private Keys and subscribed groups in Configuration.
 - Forum Test to check basic functionality.
 - Added nullService for services that require tick(), but no instant messages.
 - removed debugging for other services (ranking/gamelauncher) 



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@593 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-13 15:32:12 +00:00
drbob
602c7cc7b7 Addition of serialisers for forum/distrib
Addition of TLV for Keys, Signatures and Images



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@592 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-13 15:26:31 +00:00
drbob
e42ce13454 Add in storage of the current Data Rate to pqihandler.cc.
Add in interface for the Data Rates.
Increase DHT Bootstrap buckets to 8.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@590 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-10 00:47:24 +00:00
drbob
4a58c71f9e Added new functions to support profile and favourite files in Blog.
Added Dummy information too.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@587 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-08 18:32:40 +00:00
drbob
3b03f084fa Reorganised the Service Ids.
Services which are being designed / tested should use an Id 
  between 0xf000 - 0xffff until the messages are finalised.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@584 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-07 16:06:21 +00:00
drbob
9fbf95bf5d Added Filter to Stun Results to ensure that we only get external addresses.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@583 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-07 11:22:01 +00:00
drbob
cbd0b216a4 moved isLocalNet() etc to util/rsnet.cc
Fixed FAILURE in net_test1



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@582 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-07 11:21:00 +00:00
drbob
a827b0a839 Moved several network related functions from pqinetwork to here.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@581 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-07 11:19:09 +00:00
chrisparker126
bba3c20045 tick for Qblog service added to update server
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@580 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-06 23:40:43 +00:00
chrisparker126
5a2c0a27a2 add tick fn
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@579 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-06 23:39:05 +00:00
chrisparker126
96ce0a8eff added tick fn
cleaned up logical update behaviour, still needs fine tuning


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@578 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-06 23:38:37 +00:00
drbob
9786a2ad54 BUGFIX: use correct id for FileTransfer data.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@575 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-06 00:03:10 +00:00
drbob
dd771b9940 * Improvements to Upload information output: destination id, size and rate of last transfer
* Deletes fileCache after 30 seconds of inactivity.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@574 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-06 00:01:57 +00:00
drbob
42579f4dec Fixed warnings from -pedantic
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@573 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-05 22:10:28 +00:00
drbob
9b3213a02b Chris: Don't change the paths in here. They should work as they are!
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@572 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-05 21:42:01 +00:00
chrisparker126
d8bfc6d8b3 Mostly connectivity code additions
* implementation of p3config, cache functionality to p3Qblog
* added peerid (pid) attribute to rsQblog item and its serialisation
* TODO: logical updating for p3Qblog
* TODO: implement tick() so can add to server 
* TODO: test p3Qblog after addition of tick with some peers



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@571 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-06-04 10:59:24 +00:00
drbob
452d664b2a Added missing #includes for picky compilers (ArchLinux)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@569 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-31 13:39:04 +00:00
drbob
aa906da74a Added #includes for picky compiler (ArchLinux) mainly: stdlib.h & string.h
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@568 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-31 13:31:11 +00:00
drbob
9f64df3f20 added missing #include <algorithm> for std::find
(ArchLinux complained).



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@566 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-30 10:36:47 +00:00
drbob
39f4fa3d6c Modified rankings to take into account the User Score (-2 -> +2).
Scores can be based on:
	Time: Average Comment Age.
	Ranking: Sum of peer scores.
	Combo: Sum of (score * age)

These are still rather crude and could be improved significantly
if anyone is interested in trying.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@562 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-24 20:20:16 +00:00
chrisparker126
fe22d0b651 final interface, before starting on connectivity
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@561 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-24 15:10:59 +00:00
chrisparker126
7d571f6e2c git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@560 b45a01b8-16f6-495d-af2f-9b41ad6348cc 2008-05-24 15:09:51 +00:00
chrisparker126
ab4b0d0251 fixed some issues with dummy function
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@559 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-18 20:25:14 +00:00
vinnyx
9cd24b315f Added network message objects for the Status service - RsStatusItem
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@554 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-14 10:35:12 +00:00
drbob
5913872a77 Fixed cross-platform bugs.
(1) std::map<> doesn't support .at() on OSX or Windows. (use [] or find())
 (2) u_int32_t is invalid on windows. (use uint32_t )



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@553 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-13 16:56:27 +00:00
drbob
d48205286a * Improvements to Link Cloud Service. You can now vote anonymously on a Link,
this will spread it to your friends anonymously.
 
 * Completed Mutex Locking on Connection Manager.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@551 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-13 15:41:40 +00:00
chrisparker126
b763bd5ae9 added P3Qblog to services makefile
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@549 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-11 20:05:17 +00:00
chrisparker126
386a22746a added external interface
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@548 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-11 19:36:02 +00:00
chrisparker126
066ffd2447 fixed up some definition issues
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@546 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-10 21:33:07 +00:00
chrisparker126
d4b8340885 needed to make p3qblog public to rsQblog.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@545 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-10 20:01:49 +00:00
chrisparker126
cb736a2d5b added initialised qblog interface
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@544 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-10 20:00:02 +00:00
chrisparker126
7d5b3af65a qblog dummy service implemented
- need to test with qblog gui
- added to make compiles fine


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@540 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-09 01:01:13 +00:00
chrisparker126
2ac5b4cc65 qblog dummy service implemented
- needs to be tested with gui
- added to make, compiles fine


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@539 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-09 00:30:29 +00:00
chrisparker126
de0ad9b68f qblog dummy service implemented
- needs to be tested with gui
- compiles fine


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@538 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-09 00:29:10 +00:00
chrisparker126
556a2f32b8 dummy service implemented, needs to be test with GUI
- added to make, compiles fine


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@537 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-09 00:27:28 +00:00
chrisparker126
f1081651e5 fully implemented qblog serialiser
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@536 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-05 20:21:22 +00:00
chrisparker126
ca861f6306 fully implemented qblog serial items
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@535 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-05 20:20:18 +00:00
chrisparker126
041b1fb07c fully implemented chat serialiser
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@534 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-05-05 20:19:25 +00:00
vinnyx
3eafd7d00e Added RsStatusString() - returns a string for given status number
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@527 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-28 11:50:39 +00:00
vinnyx
26d2def720 Added status service: p3status
Added status service to core: p3face-startup


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@524 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-26 09:39:02 +00:00
vinnyx
02c6d70e30 Changed include from <string.h> to <string>
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@523 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-26 06:30:40 +00:00
chrisparker126
180c5ad542 for rsQblog service. TODO: fully implement and test
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@522 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-25 18:43:23 +00:00
chrisparker126
46dd2988bb for rsQblog service, TODO: fully implement and test
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@521 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-25 18:42:35 +00:00
chrisparker126
4f918b2fab add QBLOG service ID
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@520 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-25 18:37:57 +00:00
vinnyx
4e03fa5d06 #ifndef protection
global pointer to interface
LGPL header


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@517 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-24 12:26:44 +00:00
vinnyx
39eb8a3091 Interface for status service.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@516 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-04-24 12:11:59 +00:00
notdefine
86d191d932 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@515 b45a01b8-16f6-495d-af2f-9b41ad6348cc 2008-04-24 08:41:07 +00:00
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