cs-p2p-next.git
12 years agoAdd "executable" in /usr/local/bin/ master
root p2p-next-02 [Mon, 2 Apr 2012 18:33:36 +0000 (21:33 +0300)]
Add "executable" in /usr/local/bin/

12 years agoRename startup script for nextshare-seeder
root p2p-next-02 [Mon, 2 Apr 2012 18:33:03 +0000 (21:33 +0300)]
Rename startup script for nextshare-seeder

12 years agoUpdate nextshare-seeder script
root p2p-next-02 [Mon, 2 Apr 2012 18:32:41 +0000 (21:32 +0300)]
Update nextshare-seeder script

12 years agoMove ns-seeder to nextshare-seeder
root p2p-next-02 [Mon, 2 Apr 2012 15:41:55 +0000 (18:41 +0300)]
Move ns-seeder to nextshare-seeder

12 years agoAdd init folder and seeder scripts
root p2p-next-02 [Mon, 2 Apr 2012 15:36:14 +0000 (18:36 +0300)]
Add init folder and seeder scripts

12 years agoppf: Add doc/ and diagram overview
Razvan Deaconescu [Tue, 4 Oct 2011 06:14:43 +0000 (09:14 +0300)]
ppf: Add doc/ and diagram overview

12 years agoppf/new: Add argument parsing functionality to python script files.
Mariana Mărășoiu [Fri, 16 Sep 2011 03:34:29 +0000 (06:34 +0300)]
ppf/new: Add argument parsing functionality to python script files.

12 years agoppf/new: In test_config.py: create databases in setUp and discard them in tearDown.
Mariana Mărășoiu [Fri, 16 Sep 2011 01:52:49 +0000 (04:52 +0300)]
ppf/new: In test_config.py: create databases in setUp and discard them in tearDown.

This was necessary to avoid command line initialization before running tests.

12 years agoppf/new: Fix date and time insertion in SQLite database.
Mariana Mărășoiu [Fri, 16 Sep 2011 01:35:02 +0000 (04:35 +0300)]
ppf/new: Fix date and time insertion in SQLite database.

12 years agoppf/new: Add str2bool method to store *_enabled values as booleans (as used in databa...
Mariana Mărășoiu [Fri, 16 Sep 2011 00:18:31 +0000 (03:18 +0300)]
ppf/new: Add str2bool method to store *_enabled values as booleans (as used in databases).

12 years agoppf/new: In test_top.py: create databases in setUp and discard them in tearDown.
Mariana Mărășoiu [Thu, 15 Sep 2011 22:44:46 +0000 (01:44 +0300)]
ppf/new: In test_top.py: create databases in setUp and discard them in tearDown.

This was necessary to avoid command line initialization before running tests.

12 years agopff/new: Add swarm_id as optional argument to update_session_entry_id.
Mariana Mărășoiu [Thu, 15 Sep 2011 22:32:49 +0000 (01:32 +0300)]
pff/new: Add swarm_id as optional argument to update_session_entry_id.

Make implied modifications in top.py.

12 years agoppf/new: Add asignment of *_id values returned by add_* methods.
Mariana Mărășoiu [Thu, 15 Sep 2011 22:22:26 +0000 (01:22 +0300)]
ppf/new: Add asignment of *_id values returned by add_* methods.

12 years agoppf/new: Update storage.py to return swarm_id and client_session_id.
Mariana Mărășoiu [Thu, 15 Sep 2011 22:17:14 +0000 (01:17 +0300)]
ppf/new: Update storage.py to return swarm_id and client_session_id.

add_swarms and add_client_session methods return the id after the insertion
in database is made.

12 years agoppf/new: Add test module for top.py. Add test methods for EnhanceSwarmDescription.
Mariana Mărășoiu [Thu, 15 Sep 2011 21:56:57 +0000 (00:56 +0300)]
ppf/new: Add test module for top.py. Add test methods for EnhanceSwarmDescription.

12 years agoppf/new: Fix initialization in MySQLDatabaseAccess. Add verification for optional...
Mariana Mărășoiu [Fri, 2 Sep 2011 16:53:03 +0000 (19:53 +0300)]
ppf/new: Fix initialization in MySQLDatabaseAccess. Add verification for optional arguments.

12 years agoppf/new: Update code according to PEP 8.
Mariana Mărășoiu [Fri, 2 Sep 2011 16:43:36 +0000 (19:43 +0300)]
ppf/new: Update code according to PEP 8.
Add docstrings for classes and most functions. Limit maximum line length to 79 characters. Update alignment.

12 years agoppf/new: Complete implementation of TriblerLogParser.
Razvan Deaconescu [Thu, 1 Sep 2011 18:00:04 +0000 (21:00 +0300)]
ppf/new: Complete implementation of TriblerLogParser.

There are still issues in the current implementation. It's kind of
sloppy just to get things working in the first phase.

12 years agoppf/new: Update tests. Add verbose messages.
Razvan Deaconescu [Thu, 1 Sep 2011 17:59:36 +0000 (20:59 +0300)]
ppf/new: Update tests. Add verbose messages.

12 years agoppf/new: Add draft implementation of TriblerLogParser.
Razvan Deaconescu [Thu, 1 Sep 2011 14:57:17 +0000 (17:57 +0300)]
ppf/new: Add draft implementation of TriblerLogParser.

12 years agoppf/new: Complete test methods for TriblerLogParser.
Razvan Deaconescu [Thu, 1 Sep 2011 14:22:58 +0000 (17:22 +0300)]
ppf/new: Complete test methods for TriblerLogParser.

12 years agoppf/new: Add skeleton test methods for TriblerLogParser.
Razvan Deaconescu [Thu, 1 Sep 2011 12:59:05 +0000 (15:59 +0300)]
ppf/new: Add skeleton test methods for TriblerLogParser.

12 years agoppf/new: Initialize 'data' field in constructor for config.py classes. Remove super...
Mariana Mărășoiu [Thu, 1 Sep 2011 15:00:12 +0000 (18:00 +0300)]
ppf/new: Initialize 'data' field in constructor for config.py classes. Remove super() method from constructor.

12 years agoppf/new: Add all test running commands to README.
Razvan Deaconescu [Mon, 29 Aug 2011 05:28:06 +0000 (08:28 +0300)]
ppf/new: Add all test running commands to README.

12 years agoppf/new: Add functions and tests for SessionEntry class in config.
Mariana Mărășoiu [Mon, 29 Aug 2011 10:16:41 +0000 (13:16 +0300)]
ppf/new: Add functions and tests for SessionEntry class in config.

12 years agoppf/new: Move *_example.ini files to *.sample.ini. Modify test_config.py to use new...
Mariana Mărășoiu [Mon, 29 Aug 2011 08:59:50 +0000 (11:59 +0300)]
ppf/new: Move *_example.ini files to *.sample.ini. Modify test_config.py to use new file names.

12 years agoppf/new: Add command for test_config in README.
Mariana Mărășoiu [Sun, 28 Aug 2011 19:41:09 +0000 (22:41 +0300)]
ppf/new: Add command for test_config in README.

12 years agoppf/new: Add functions and tests for config. Add example files used for tests.
Mariana Mărășoiu [Sun, 28 Aug 2011 19:37:20 +0000 (22:37 +0300)]
ppf/new: Add functions and tests for config. Add example files used for tests.

12 years agoppf/new: In storage.py: MySQLDatabaseAccess class receives as argument in initialisat...
Mariana Mărășoiu [Sun, 28 Aug 2011 17:45:36 +0000 (20:45 +0300)]
ppf/new: In storage.py: MySQLDatabaseAccess class receives as argument in initialisation a dict with connection options.

12 years agoppf/new: Use self.handlers instead of handlers in SwarmWriter class
Mariana Mărășoiu [Sun, 28 Aug 2011 17:27:34 +0000 (20:27 +0300)]
ppf/new: Use self.handlers instead of handlers in SwarmWriter class

12 years agoppf/new: Add peer message parsing support for libtorrent.
Razvan Deaconescu [Sun, 28 Aug 2011 05:56:10 +0000 (08:56 +0300)]
ppf/new: Add peer message parsing support for libtorrent.

12 years agoppf/new: Add IP and port information to verbose messages.
Razvan Deaconescu [Sun, 28 Aug 2011 05:01:50 +0000 (08:01 +0300)]
ppf/new: Add IP and port information to verbose messages.

IP and port information are determined from verbose log file name.

12 years agoppf/new: Fix date/timestamp usage where required.
Razvan Deaconescu [Sun, 28 Aug 2011 04:46:28 +0000 (07:46 +0300)]
ppf/new: Fix date/timestamp usage where required.

Status messages require the start time to be known. Status message
timestamp is computed by adding the number of status messages (equal to
the number of second) to the start time.

12 years agoppf/new: Add methods for verbose and status line parsing.
Razvan Deaconescu [Sat, 27 Aug 2011 18:02:22 +0000 (21:02 +0300)]
ppf/new: Add methods for verbose and status line parsing.

12 years agoppf/new: Fixes in parsing tests.
Razvan Deaconescu [Sat, 27 Aug 2011 18:00:30 +0000 (21:00 +0300)]
ppf/new: Fixes in parsing tests.

Also add support for running certain tests - with the help of
unittest.TestSuite class.

12 years agoppf/new: Refactor gget_*_message methods for LibtorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 15:49:06 +0000 (18:49 +0300)]
ppf/new: Refactor gget_*_message methods for LibtorrentLogParser.

12 years agoppf/new: Fill add_*_line methods in test_parsing.py.
Razvan Deaconescu [Sat, 27 Aug 2011 14:46:54 +0000 (17:46 +0300)]
ppf/new: Fill add_*_line methods in test_parsing.py.

12 years agoppf/new: Complete tests for parsing module.
Razvan Deaconescu [Sat, 27 Aug 2011 11:23:47 +0000 (14:23 +0300)]
ppf/new: Complete tests for parsing module.

Parsing module implementation had been updated/fixed. Implementation is
not yet complete; actual parsing must be implemented.

12 years agoppf/new: Updates and new tests for parsing module.
Razvan Deaconescu [Sat, 27 Aug 2011 08:12:48 +0000 (11:12 +0300)]
ppf/new: Updates and new tests for parsing module.

12 years agoppf/new: Add two tests and setUp/tearDown to parsing test module.
Razvan Deaconescu [Sat, 27 Aug 2011 06:43:50 +0000 (09:43 +0300)]
ppf/new: Add two tests and setUp/tearDown to parsing test module.

12 years agoppf/new: Fixes to LogParser classes.
Razvan Deaconescu [Sat, 27 Aug 2011 06:40:53 +0000 (09:40 +0300)]
ppf/new: Fixes to LogParser classes.

Use self.method_name() to call local class methods.
LibtorrentLogParser and TriblerLogParser inherit SessionLogParser.

12 years agoppf/new: Add skeleton test methods for LibtorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:41:36 +0000 (08:41 +0300)]
ppf/new: Add skeleton test methods for LibtorrentLogParser.

12 years agoppf/new: Add test module for parsing.py.
Razvan Deaconescu [Sat, 27 Aug 2011 05:10:52 +0000 (08:10 +0300)]
ppf/new: Add test module for parsing.py.

12 years agoppf/new: Add skeleton methods to LibTorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:05:20 +0000 (08:05 +0300)]
ppf/new: Add skeleton methods to LibTorrentLogParser.

12 years agoppf/new: Add/update top level scripts according to top.py methods.
Razvan Deaconescu [Fri, 26 Aug 2011 18:43:55 +0000 (21:43 +0300)]
ppf/new: Add/update top level scripts according to top.py methods.

Top level scripts, to be run using the python interpreter, are
enhance_swarm_description.py, parse_swarm.py and parse_session.py.

12 years agoppf/new: Replase SwarmConfig class with SwarmDescription.
Razvan Deaconescu [Fri, 26 Aug 2011 18:42:25 +0000 (21:42 +0300)]
ppf/new: Replase SwarmConfig class with SwarmDescription.

Remove SessionConfig class.
Update tests for config.py accordingly.

12 years agoppf/new: Add newly designed top-level functions in top.py.
Razvan Deaconescu [Fri, 26 Aug 2011 17:18:05 +0000 (20:18 +0300)]
ppf/new: Add newly designed top-level functions in top.py.

As specified in top-design-proposal.txt.

12 years agoppf/new: Remove trailing white spaces.
Razvan Deaconescu [Fri, 26 Aug 2011 13:53:57 +0000 (16:53 +0300)]
ppf/new: Remove trailing white spaces.

12 years agoppf/new: Complete tests for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 13:27:37 +0000 (16:27 +0300)]
ppf/new: Complete tests for util.py.

12 years agoppf/new: Complete several tests for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 12:41:12 +0000 (15:41 +0300)]
ppf/new: Complete several tests for util.py.

12 years agoppf/new: Add logging support to util.py. Fixes due to tests.
Razvan Deaconescu [Fri, 26 Aug 2011 12:40:45 +0000 (15:40 +0300)]
ppf/new: Add logging support to util.py. Fixes due to tests.

12 years agoppf/new: Add skeleton tests to test_util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:32 +0000 (14:37 +0300)]
ppf/new: Add skeleton tests to test_util.py.

12 years agoppf/new: Fix constructor of LiveLogStatus.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:00 +0000 (14:37 +0300)]
ppf/new: Fix constructor of LiveLogStatus.

12 years agoppf/new: Add skeleton test file for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 10:40:54 +0000 (13:40 +0300)]
ppf/new: Add skeleton test file for util.py.

12 years agoppf/new: Add util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 10:34:47 +0000 (13:34 +0300)]
ppf/new: Add util.py.

util.py contains the LiveLogFile for live analysis of log files. A
specialized status file holds the current position of processing the log
file. In case of error, the analyzer would restart, read the status file
and resume parsing from where it left off.

12 years agoppf/new: Add top level functions and scripts design proposal.
Razvan Deaconescu [Thu, 25 Aug 2011 09:54:14 +0000 (12:54 +0300)]
ppf/new: Add top level functions and scripts design proposal.

12 years agoppf/new: Add "executable" swarm parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:50 +0000 (11:02 +0300)]
ppf/new: Add "executable" swarm parsing script.

12 years agoppf/new: Add "executable" session parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:39 +0000 (11:02 +0300)]
ppf/new: Add "executable" session parsing script.

12 years agoppf/new: Uncompress archive before session parsing.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:18 +0000 (11:02 +0300)]
ppf/new: Uncompress archive before session parsing.

12 years agoppf/new: Add config.py. Add skeleton functions and tests for config.py.
Mariana Mărășoiu [Wed, 24 Aug 2011 18:15:03 +0000 (21:15 +0300)]
ppf/new: Add config.py. Add skeleton functions and tests for config.py.

12 years agoppf/new: Add methods for parsing swarm and session archive files.
Razvan Deaconescu [Wed, 24 Aug 2011 17:54:08 +0000 (20:54 +0300)]
ppf/new: Add methods for parsing swarm and session archive files.

12 years agoppf/new: Add top.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:54 +0000 (18:57 +0300)]
ppf/new: Add top.py.

12 years agoppf/new: Update top level message in parsing.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:42 +0000 (18:57 +0300)]
ppf/new: Update top level message in parsing.py.

12 years agoppf/new: Rename parser.py to parsing.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:25 +0000 (18:57 +0300)]
ppf/new: Rename parser.py to parsing.py.

12 years agoppf/new: Full implementation of add_* for MySQL.
Mariana Mărășoiu [Wed, 24 Aug 2011 11:42:10 +0000 (14:42 +0300)]
ppf/new: Full implementation of add_* for MySQL.

12 years agoppf/new: Use subprocess module instead of sqlparse. Connection to database
Mariana Mărășoiu [Wed, 24 Aug 2011 11:31:39 +0000 (14:31 +0300)]
ppf/new: Use subprocess module instead of sqlparse. Connection to database
is made in setUp.

12 years agoppf: Add MySQL access tests.
Mariana Marasoiu [Tue, 23 Aug 2011 10:27:35 +0000 (13:27 +0300)]
ppf: Add MySQL access tests.

12 years agoppf: Add SQL files for MySQL database.
Mariana Marasoiu [Tue, 23 Aug 2011 10:12:23 +0000 (13:12 +0300)]
ppf: Add SQL files for MySQL database.

12 years agoppf/new: Add skeleton for LibtorrentLogParser.
Razvan Deaconescu [Mon, 22 Aug 2011 12:23:56 +0000 (15:23 +0300)]
ppf/new: Add skeleton for LibtorrentLogParser.

12 years agoppf/new: Add parser.py.
Razvan Deaconescu [Mon, 22 Aug 2011 11:37:11 +0000 (14:37 +0300)]
ppf/new: Add parser.py.

This is going to be the new parser implementation for libtorrent,
Tribler and other BitTorrent clients.

12 years agoppf: Add README file.
Razvan Deaconescu [Mon, 22 Aug 2011 10:38:27 +0000 (13:38 +0300)]
ppf: Add README file.

12 years agoppf: Add SwarmWriter class.
Razvan Deaconescu [Mon, 22 Aug 2011 10:37:04 +0000 (13:37 +0300)]
ppf: Add SwarmWriter class.

12 years agoppf: Add author recognition.
Razvan Deaconescu [Mon, 22 Aug 2011 10:25:13 +0000 (13:25 +0300)]
ppf: Add author recognition.

12 years agoppf: Complete SQLite add_* message tests.
Razvan Deaconescu [Mon, 22 Aug 2011 10:22:32 +0000 (13:22 +0300)]
ppf: Complete SQLite add_* message tests.

12 years agoppf: Add support for datetime timestamps in SQLiteDatabaseAccess.
Razvan Deaconescu [Mon, 22 Aug 2011 10:16:46 +0000 (13:16 +0300)]
ppf: Add support for datetime timestamps in SQLiteDatabaseAccess.

12 years agoppf: Full implementation of add_* for SQLite.
Razvan Deaconescu [Mon, 22 Aug 2011 09:55:53 +0000 (12:55 +0300)]
ppf: Full implementation of add_* for SQLite.

12 years agoppf: Remove swarm_id in tests that add new messages.
Razvan Deaconescu [Mon, 22 Aug 2011 09:53:23 +0000 (12:53 +0300)]
ppf: Remove swarm_id in tests that add new messages.

Database schema maps client session ids to swarm ids.

12 years agoppf: Add SQLite access tests.
Razvan Deaconescu [Mon, 22 Aug 2011 08:28:18 +0000 (11:28 +0300)]
ppf: Add SQLite access tests.

12 years agoppf: Update DatabaseAccess classes to initialize database in constructor.
Razvan Deaconescu [Mon, 22 Aug 2011 07:56:00 +0000 (10:56 +0300)]
ppf: Update DatabaseAccess classes to initialize database in constructor.

Previously, initilization occured in the connect() method, with the
database string passed to it. Now the connect() method receives no
argument; connection information had been initialized in constructor.

12 years agoppf: Read test initialization/population script.
Razvan Deaconescu [Mon, 22 Aug 2011 07:50:29 +0000 (10:50 +0300)]
ppf: Read test initialization/population script.

12 years agoppf: Add test SQL file.
Razvan Deaconescu [Mon, 22 Aug 2011 07:13:43 +0000 (10:13 +0300)]
ppf: Add test SQL file.

12 years agoppf: Run creation script for SQLite tests.
Razvan Deaconescu [Mon, 22 Aug 2011 07:09:17 +0000 (10:09 +0300)]
ppf: Run creation script for SQLite tests.

12 years agoppf: Update direction strings to "send" and "receive".
Razvan Deaconescu [Mon, 22 Aug 2011 06:20:04 +0000 (09:20 +0300)]
ppf: Update direction strings to "send" and "receive".

12 years agoppf: Replace date, time with h timestamp.
Razvan Deaconescu [Mon, 22 Aug 2011 05:50:59 +0000 (08:50 +0300)]
ppf: Replace date, time with h timestamp.

timestamp will be a Python Datetime object.

12 years agoppf: Add skeleton tests for SQLiteDatabaseAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:29 +0000 (22:03 +0300)]
ppf: Add skeleton tests for SQLiteDatabaseAccess.

12 years agoppf: Populate skeleton methods for *DatabaseAccess classes.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:01 +0000 (22:03 +0300)]
ppf: Populate skeleton methods for *DatabaseAccess classes.

12 years agoppf: "Break" asserts for swarm and client sessions tests.
Razvan Deaconescu [Sun, 21 Aug 2011 18:32:34 +0000 (21:32 +0300)]
ppf: "Break" asserts for swarm and client sessions tests.

12 years agoppf: Add tests for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:52 +0000 (21:28 +0300)]
ppf: Add tests for add_*_message.

12 years agoppf: Add implementation for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:24 +0000 (21:28 +0300)]
ppf: Add implementation for add_*_message.

12 years agoppf: Add test suite for add_client_session.
Razvan Deaconescu [Sun, 21 Aug 2011 17:35:18 +0000 (20:35 +0300)]
ppf: Add test suite for add_client_session.

12 years agoAdd add_client_session to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 17:34:47 +0000 (20:34 +0300)]
Add add_client_session to TreeTextFileAccess.

12 years agoppf: Add test suite for TreeTextFileAccess class.
Razvan Deaconescu [Sun, 21 Aug 2011 17:08:39 +0000 (20:08 +0300)]
ppf: Add test suite for TreeTextFileAccess class.

12 years agoAdd add_swarm to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 16:48:12 +0000 (19:48 +0300)]
Add add_swarm to TreeTextFileAccess.

12 years agoppf: Add tests for storage.py functions.
Razvan Deaconescu [Sun, 21 Aug 2011 16:31:05 +0000 (19:31 +0300)]
ppf: Add tests for storage.py functions.

12 years agoppf: Move find_numeric_subfolder function outside class.
Razvan Deaconescu [Sun, 21 Aug 2011 16:30:34 +0000 (19:30 +0300)]
ppf: Move find_numeric_subfolder function outside class.

12 years agoAdd logging support to storage.
Razvan Deaconescu [Sun, 21 Aug 2011 15:41:37 +0000 (18:41 +0300)]
Add logging support to storage.

12 years agoInitial fill of TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 15:40:51 +0000 (18:40 +0300)]
Initial fill of TreeTextFileAccess.

12 years agoRemove BTClient class.
Razvan Deaconescu [Sun, 21 Aug 2011 14:56:28 +0000 (17:56 +0300)]
Remove BTClient class.

BitTorrent clients are defined as a dictionary.

12 years agoppf: Add storage.py.
Razvan Deaconescu [Sun, 21 Aug 2011 14:30:05 +0000 (17:30 +0300)]
ppf: Add storage.py.

Swarm data logging backend.

12 years agoAdd TODOs to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 18:29:29 +0000 (21:29 +0300)]
Add TODOs to sqlite_initdb.bash.