]> git.mxchange.org Git - hub.git/log
hub.git
12 years agoChoosed other separator chars for package data
Roland Häder [Sat, 11 Feb 2012 14:34:13 +0000 (14:34 +0000)]
Choosed other separator chars for package data

12 years agoChanged separators to prevent wrong detection on ip:port
Roland Häder [Sat, 11 Feb 2012 11:39:56 +0000 (11:39 +0000)]
Changed separators to prevent wrong detection on ip:port

12 years agoContinued on development of 'hub' project with many refactorings/addings:
Roland Häder [Sat, 11 Feb 2012 00:13:26 +0000 (00:13 +0000)]
Continued on development of 'hub' project with many refactorings/addings:
- Added new exception UnexpectedPackageStatusException which will be thrown if
  the package status is not the expected one before it got 'pop-ed' from the
  stack
- Added HalfShutdownSocketVisitor which will remove the first failing entry
  from the list
- Added ability to change package status by 'pop-ing' it from the stack and
  then re-adding it
- Added (unused ATM) ConnectionRegistry which will serve for outgoing
  connections
- Many medium/minor refacturings, still there is a while() loop that needs
  refacturing to an iterator to not let the software stay to long in that
  method (which would cause other connections being paused)
- TODOs.txt updated

12 years agoall socketErrorFooHandler() methods shall be protected, else they can't be called...
Roland Häder [Fri, 10 Feb 2012 19:37:47 +0000 (19:37 +0000)]
all socketErrorFooHandler() methods shall be protected, else they can't be called (but detected by method_exists()); moved socket_set_nonblock() call above socket_connect()

12 years agoRenamed (opps)
Roland Häder [Tue, 7 Feb 2012 20:34:20 +0000 (20:34 +0000)]
Renamed (opps)

12 years agoRefactured handling of socket errors, old code is commeted out and will be removed...
Roland Häder [Tue, 7 Feb 2012 20:31:05 +0000 (20:31 +0000)]
Refactured handling of socket errors, old code is commeted out and will be removed on-demand (if the proper handler call-back is finished)

12 years agoFixed conflict with 'core' project
Roland Häder [Wed, 14 Dec 2011 04:48:40 +0000 (04:48 +0000)]
Fixed conflict with 'core' project

12 years agoCommented out nosiy debug lines
Roland Häder [Tue, 13 Dec 2011 05:44:58 +0000 (05:44 +0000)]
Commented out nosiy debug lines

12 years agoPrivate attribute converted to class constant (it will never change in run-time)
Roland Häder [Wed, 30 Nov 2011 17:43:02 +0000 (17:43 +0000)]
Private attribute converted to class constant (it will never change in run-time)

12 years agoPlease extend BaseNodeState
Roland Häder [Wed, 30 Nov 2011 02:36:09 +0000 (02:36 +0000)]
Please extend BaseNodeState

12 years agoDebug line added, inline comment improved
Roland Häder [Mon, 21 Nov 2011 20:25:01 +0000 (20:25 +0000)]
Debug line added, inline comment improved

12 years agoHub project continued:
Roland Häder [Mon, 21 Nov 2011 19:52:45 +0000 (19:52 +0000)]
Hub project continued:
- Added a telnet listener for the 'chat' console
- Some minor cleanups/improvements

12 years agoSome fixes
Roland Häder [Wed, 9 Nov 2011 01:55:59 +0000 (01:55 +0000)]
Some fixes

12 years agoAlso visit the NetworkPackage class to clear all stacks
Roland Häder [Wed, 9 Nov 2011 01:52:00 +0000 (01:52 +0000)]
Also visit the NetworkPackage class to clear all stacks

12 years agoAlso this ...
Roland Häder [Tue, 8 Nov 2011 10:18:10 +0000 (10:18 +0000)]
Also this ...

12 years agoSome global cleanups:
Roland Häder [Tue, 8 Nov 2011 07:54:39 +0000 (07:54 +0000)]
Some global cleanups:
- getInstance() in BaseRegistry (non-static) conflicted with many classe
  (static) where it was as singleton getter implemented
- $selfInstance is better that $thisInstance

12 years agoHub project continued:
Roland Häder [Tue, 8 Nov 2011 05:09:25 +0000 (05:09 +0000)]
Hub project continued:
- Method ifPeerStateHasChanged() renamed to isSamePeerState() to avoid negation
- Above method is now basicly finished
- Some code moved for above method
- Timings are turned on in this project

12 years agoMove to generic 'core' project, because getIndexKey() is generic code
Roland Häder [Sun, 6 Nov 2011 03:19:34 +0000 (03:19 +0000)]
Move to generic 'core' project, because getIndexKey() is generic code

12 years agoUse $this->debugBackTrace() instead of die()
Roland Häder [Sun, 6 Nov 2011 02:42:24 +0000 (02:42 +0000)]
Use $this->debugBackTrace() instead of die()

12 years agoHub project continued:
Roland Häder [Fri, 4 Nov 2011 19:36:47 +0000 (19:36 +0000)]
Hub project continued:
- ifPeerStateHasChanged() introduced (also to interface)
- Some if() block comments added (minor)
- Other minor improvements

12 years agoSome minor improvements and important initialization of variables (opps)
Roland Häder [Sun, 30 Oct 2011 21:32:01 +0000 (21:32 +0000)]
Some minor improvements and important initialization of variables (opps)

12 years agoAdded missing port in regex
Roland Häder [Tue, 25 Oct 2011 14:35:12 +0000 (14:35 +0000)]
Added missing port in regex

12 years agoSome 'abstract' are required
Roland Häder [Sun, 11 Sep 2011 09:28:26 +0000 (09:28 +0000)]
Some 'abstract' are required

12 years agodebugBackTrace() was to hard here
Roland Häder [Thu, 1 Sep 2011 07:46:32 +0000 (07:46 +0000)]
debugBackTrace() was to hard here

12 years agoCode cleanups and project continued:
Roland Häder [Thu, 1 Sep 2011 07:43:54 +0000 (07:43 +0000)]
Code cleanups and project continued:
- Some 'abstract' removed
- Some code moved to HubTools::determineOwnExternalIp() to encapsulate it
- Peer state lookup now working partly (still one part is left)
- Other cleanups

12 years agoMulti-line comment
Roland Häder [Wed, 31 Aug 2011 20:46:58 +0000 (20:46 +0000)]
Multi-line comment

12 years agoGZIP does maybe only work with SVN version of PHP, so we take ZLIB
Roland Häder [Wed, 31 Aug 2011 20:45:48 +0000 (20:45 +0000)]
GZIP does maybe only work with SVN version of PHP, so we take ZLIB

12 years agoDon't miss this to set ... :(
Roland Häder [Wed, 31 Aug 2011 20:19:55 +0000 (20:19 +0000)]
Don't miss this to set ... :(

12 years agoMore debugging
Roland Häder [Wed, 31 Aug 2011 20:18:46 +0000 (20:18 +0000)]
More debugging

12 years agoFixed 'undefined variable' in TcpConnectionHelper
Roland Häder [Wed, 31 Aug 2011 20:17:01 +0000 (20:17 +0000)]
Fixed 'undefined variable' in TcpConnectionHelper

12 years agoHub project continued:
Roland Häder [Wed, 31 Aug 2011 20:15:13 +0000 (20:15 +0000)]
Hub project continued:
- Prepared the code for HTTP requests (wait for it what it will become!)
- Added a lot peer/node states
- Added db/node_states/ directory
- Directory 'db/peer_states/ does now ignore *.serialized files
- Handling of DNAT/MASQUERADE combination which results in self_connect task
  in a 'connection refused' state. This is normal with DNAT/MASQUERADE networks
- Rewritten/improved/completed a lot parts, yet not all is working, I cannot
  remember all (to long ago)
- TODOs.txt updated
- NEWS/README a little updated

13 years agoAdded missing interface
Roland Häder [Sun, 29 May 2011 02:36:36 +0000 (02:36 +0000)]
Added missing interface

13 years agoDocumentation section added for 'chat console'
Roland Häder [Thu, 26 May 2011 04:18:58 +0000 (04:18 +0000)]
Documentation section added for 'chat console'

13 years agoBasic (non-functional) classes added for a chat console (ever want to 'chat' or ...
Roland Häder [Thu, 26 May 2011 04:14:04 +0000 (04:14 +0000)]
Basic (non-functional) classes added for a chat console (ever want to 'chat' or 'talk' with your node?) Please don't put this to high, at the moment it is only planed to give the node commands, no more

13 years agoRewrote unit source factory to registry pattern
Roland Häder [Sat, 30 Apr 2011 00:11:14 +0000 (00:11 +0000)]
Rewrote unit source factory to registry pattern

13 years agoFixed name ...
Roland Häder [Sat, 30 Apr 2011 00:07:03 +0000 (00:07 +0000)]
Fixed name ...

13 years agoAdded check for is_array()
Roland Häder [Thu, 28 Apr 2011 21:19:02 +0000 (21:19 +0000)]
Added check for is_array()

13 years agoHandling of decoded raw data continued:
Roland Häder [Thu, 28 Apr 2011 16:02:32 +0000 (16:02 +0000)]
Handling of decoded raw data continued:
- Decoded raw data is now being handled over to the NetworkPackage class
- Therefore the Receivable interface has been extended with some more methods
- Further assembling of the handled decoded raw data is currently unfinished
- TODOs.txt updated

13 years agoAdded 'helper' word into configuration entry
Roland Häder [Thu, 28 Apr 2011 00:51:22 +0000 (00:51 +0000)]
Added 'helper' word into configuration entry

13 years agoRewrote endless creation of iterator instances to registry-based 'caching'
Roland Häder [Mon, 25 Apr 2011 19:48:14 +0000 (19:48 +0000)]
Rewrote endless creation of iterator instances to registry-based 'caching'

13 years agoTODOs.txt updated
Roland Häder [Sun, 24 Apr 2011 08:36:20 +0000 (08:36 +0000)]
TODOs.txt updated

13 years agoRenamed a lot 'Peer' classes to 'Node' or 'Client' depending on what they are written for
Roland Häder [Sun, 24 Apr 2011 08:35:49 +0000 (08:35 +0000)]
Renamed a lot 'Peer' classes to 'Node' or 'Client' depending on what they are written for

13 years agoBetter IP address than hostname
Roland Häder [Wed, 20 Apr 2011 23:22:40 +0000 (23:22 +0000)]
Better IP address than hostname

13 years agoUpdated port number for default bootstrapper
Roland Häder [Wed, 20 Apr 2011 23:20:24 +0000 (23:20 +0000)]
Updated port number for default bootstrapper

13 years agoUpdated port number for default bootstrapper
Roland Häder [Wed, 20 Apr 2011 23:19:35 +0000 (23:19 +0000)]
Updated port number for default bootstrapper

13 years agoSome double-quotes converted to single
Roland Häder [Wed, 20 Apr 2011 19:00:06 +0000 (19:00 +0000)]
Some double-quotes converted to single

13 years agoRemoved deprecated code (see last commit why)
Roland Häder [Wed, 20 Apr 2011 05:43:27 +0000 (05:43 +0000)]
Removed deprecated code (see last commit why)

13 years agoRemoved obsolete boot_node_foo_listen_port, you can now customize it in config-local.php
Roland Häder [Wed, 20 Apr 2011 05:40:25 +0000 (05:40 +0000)]
Removed obsolete boot_node_foo_listen_port, you can now customize it in config-local.php

13 years agoLocal configuration file template added, config-local.php will be ignored
Roland Häder [Wed, 20 Apr 2011 05:35:46 +0000 (05:35 +0000)]
Local configuration file template added, config-local.php will be ignored

13 years agoRenamed FooNetworkPackageHandler to FooRawDataHandler, because it handles raw data...
Roland Häder [Wed, 20 Apr 2011 05:13:56 +0000 (05:13 +0000)]
Renamed FooNetworkPackageHandler to FooRawDataHandler, because it handles raw data from the socket and not abstracted 'NetworkPackage' data

13 years agosvn:eol-style set to 'native' also for Doxyfile ... :/
Roland Häder [Wed, 20 Apr 2011 04:58:57 +0000 (04:58 +0000)]
svn:eol-style set to 'native' also for Doxyfile ... :/

13 years agosvn:eol-style set to 'native'
Roland Häder [Wed, 20 Apr 2011 04:56:55 +0000 (04:56 +0000)]
svn:eol-style set to 'native'

13 years agoTypo fixed, visitor introduced, SVN property set:
Roland Häder [Wed, 20 Apr 2011 04:15:33 +0000 (04:15 +0000)]
Typo fixed, visitor introduced, SVN property set:
- New visitor introduced which will monitor incoming raw data
- Typo in method name fixed
- SVN property "eol-style" set to native

13 years agoRemoved old-lost comments, moved two class instances around:
Roland Häder [Tue, 19 Apr 2011 01:26:58 +0000 (01:26 +0000)]
Removed old-lost comments, moved two class instances around:
- Removed old-lost comments about the application selector
- Moved class instances around to have the pool listener available in the method
  which checks for newly arrived raw data

13 years agoIntroduced getListIterator() to all lists implementing Listable
Roland Häder [Mon, 18 Apr 2011 22:08:56 +0000 (22:08 +0000)]
Introduced getListIterator() to all lists implementing Listable

13 years agoBundled all cruncher-related configuration entries together
Roland Häder [Mon, 18 Apr 2011 21:44:25 +0000 (21:44 +0000)]
Bundled all cruncher-related configuration entries together

13 years agoCrunchers may have have own filters
Roland Häder [Mon, 18 Apr 2011 20:19:17 +0000 (20:19 +0000)]
Crunchers may have have own filters

13 years agoSwapped out seperator char for all boostrap nodes
Roland Häder [Mon, 18 Apr 2011 19:44:56 +0000 (19:44 +0000)]
Swapped out seperator char for all boostrap nodes

13 years agoSome string cosmetics
Roland Häder [Mon, 18 Apr 2011 19:39:02 +0000 (19:39 +0000)]
Some string cosmetics

13 years agoPackage data 'recipient', 'sender' and 'content' are now replaceable
Roland Häder [Mon, 18 Apr 2011 19:35:05 +0000 (19:35 +0000)]
Package data 'recipient', 'sender' and 'content' are now replaceable

13 years agoNew singleton-factories introduced:
Roland Häder [Mon, 18 Apr 2011 18:25:40 +0000 (18:25 +0000)]
New singleton-factories introduced:
- Two new registry-based singleton-factories introduced:
  + The FragmenterFactory produces singleton fragmenter instances
  + The ProducerFactory produces singleton producer instance of different types
- Rewritten the code that Base64 encoding is now transparently implemented
  around the socket_write/read() functions. So all data is now being
  transparently transfered to other peers in Base64 encoding.
- Further renames of the package streamer classes to raw-data streamers
- Minor improvements here and there
- TODOs.txt updated

13 years agoAdded a new task for listener pools and network package readers (for abstract Network...
Roland Häder [Mon, 18 Apr 2011 00:51:08 +0000 (00:51 +0000)]
Added a new task for listener pools and network package readers (for abstract NetworkPackage class), socket_read() does only not block in binary mode?

13 years agoDebug output for error code added
Roland Häder [Sun, 17 Apr 2011 22:23:39 +0000 (22:23 +0000)]
Debug output for error code added

13 years agoRemoved die()
Roland Häder [Sun, 17 Apr 2011 22:21:28 +0000 (22:21 +0000)]
Removed die()

13 years agoAdded queue for queued chunks
Roland Häder [Sun, 17 Apr 2011 22:19:31 +0000 (22:19 +0000)]
Added queue for queued chunks

13 years agoMoved a method for private-protected-public sort order
Roland Häder [Sun, 17 Apr 2011 22:09:50 +0000 (22:09 +0000)]
Moved a method for private-protected-public sort order

13 years agoContinued with package fragmenter (a lot new, but unfinished code)
Roland Häder [Sun, 17 Apr 2011 22:08:24 +0000 (22:08 +0000)]
Continued with package fragmenter (a lot new, but unfinished code)

13 years agoInternal TODO closed, description of NetworkPackage class updated
Roland Häder [Tue, 12 Apr 2011 00:51:37 +0000 (00:51 +0000)]
Internal TODO closed, description of NetworkPackage class updated

13 years agoRenamed, too. #2 :-(
Roland Häder [Tue, 12 Apr 2011 00:13:57 +0000 (00:13 +0000)]
Renamed, too. #2 :-(

13 years agoRenamed, too.
Roland Häder [Tue, 12 Apr 2011 00:13:33 +0000 (00:13 +0000)]
Renamed, too.

13 years agoRenamed some methods to make their purpose more clear, extended comment
Roland Häder [Tue, 12 Apr 2011 00:11:35 +0000 (00:11 +0000)]
Renamed some methods to make their purpose more clear, extended comment

13 years agoRefactured nodeInstance to be no longer stored in helpers
Roland Häder [Mon, 11 Apr 2011 22:48:28 +0000 (22:48 +0000)]
Refactured nodeInstance to be no longer stored in helpers

13 years agoAdded encapsulation:
Roland Häder [Sat, 9 Apr 2011 00:19:09 +0000 (00:19 +0000)]
Added encapsulation:
- Encapsulated adding of entries to the producer's out-going/incoming queue
- Encapsulated checking if the out-going/incoming queue's size has reached a
  configurable limit
- Encapsulated initialization (and forced re-init) of both queues

13 years agoSome code cosmetics applied
Roland Häder [Wed, 6 Apr 2011 01:07:44 +0000 (01:07 +0000)]
Some code cosmetics applied

13 years agoMove this away...
Roland Häder [Tue, 5 Apr 2011 23:42:31 +0000 (23:42 +0000)]
Move this away...

13 years agoThe key producer may produce as twice as keys per second:
Roland Häder [Tue, 5 Apr 2011 23:39:08 +0000 (23:39 +0000)]
The key producer may produce as twice as keys per second:
- The key producer runs now with an interval delay of 5ms
- Some debug messages/comments updated

13 years agoCruncher continued and rewritten to use states:
Roland Häder [Tue, 5 Apr 2011 23:33:13 +0000 (23:33 +0000)]
Cruncher continued and rewritten to use states:
- States 'init' and 'virgin' introduced
- Needed cruncher parts refactured to use the new states
- Creation of node/cruncher states is now done in factories
- Key producer added which will produce keys if the required state 'virgin' is
  beging detected. This producer works without a loop which is recommended for
  task-based applications
- A lot other improvements
- TODOs.txt updated

13 years agoAdded all node types, moved iterator class:
Roland Häder [Sun, 3 Apr 2011 00:57:05 +0000 (00:57 +0000)]
Added all node types, moved iterator class:
- Added all types of (hub/cloud) nodes for easy coding
- Moved key producer iterator class to sub directory
- TODOs.txt updated

13 years agoMethods defined in interfaces are always public...
Roland Häder [Sat, 2 Apr 2011 23:27:46 +0000 (23:27 +0000)]
Methods defined in interfaces are always public...

13 years agoTwo methods in CruncherTestUnitProducer are now throwing UnsupportedOperationExceptio...
Roland Häder [Sat, 2 Apr 2011 22:32:54 +0000 (22:32 +0000)]
Two methods in CruncherTestUnitProducer are now throwing UnsupportedOperationException if they got called which should not happen.

13 years agoRewritten session id solver to lesser negation
Roland Häder [Thu, 31 Mar 2011 01:49:19 +0000 (01:49 +0000)]
Rewritten session id solver to lesser negation

13 years agoCompletely replaced regex for detecting ip:port combinations
Roland Häder [Thu, 31 Mar 2011 01:45:51 +0000 (01:45 +0000)]
Completely replaced regex for detecting ip:port combinations

13 years agoGeneration of test units and keys continued:
Roland Häder [Thu, 31 Mar 2011 01:34:25 +0000 (01:34 +0000)]
Generation of test units and keys continued:
- Database folder for crunher projects added
- Introduced two methods to MessageHelper
- Introduced an iterator for test unit producers to generate keys
- TODOs.txt updated

13 years agoThe encrypted message is now assigned to its template variable, big comment added...
Roland Häder [Tue, 29 Mar 2011 22:08:12 +0000 (22:08 +0000)]
The encrypted message is now assigned to its template variable, big comment added for upcoming (tomorrow more) commits

13 years agoFixed a typo in field/attribute name (thanks to __get()/__set() methods)
Roland Häder [Tue, 29 Mar 2011 16:44:13 +0000 (16:44 +0000)]
Fixed a typo in field/attribute name (thanks to __get()/__set() methods)

13 years agoSwapped code, moved/renamed classes and interfaces:
Roland Häder [Tue, 29 Mar 2011 16:31:30 +0000 (16:31 +0000)]
Swapped code, moved/renamed classes and interfaces:
- Swapped code between TestUnitSource and CryptoRandomUnitMessageHelper, the
  helper is now encapsulating and the source is now a source for the helper
- Introduced generic Helper interface to existing helper interfaces (from latest
  'core' changes)
- Renamed/moved some classes/interfaces
- TODOs.txt updated

13 years agoThe previously added but not used message helper is now being used (and filled with...
Roland Häder [Tue, 29 Mar 2011 16:04:22 +0000 (16:04 +0000)]
The previously added but not used message helper is now being used (and filled with 'life')

13 years agoAdded more classes (source for anything 'sourced', etc):
Roland Häder [Tue, 29 Mar 2011 15:55:38 +0000 (15:55 +0000)]
Added more classes (source for anything 'sourced', etc):
- Added some (partly unused) more classes for creating test units
- CryptoRandomMessageHelper is currently unused
- Added factory to create unit source classes
- TODOs.txt updated

13 years agoAdded parameter 'key' to encryption methods to allow own keys
Roland Häder [Tue, 29 Mar 2011 09:08:34 +0000 (09:08 +0000)]
Added parameter 'key' to encryption methods to allow own keys

13 years agoAdded a out-going work queue (FiFoStacker instance) to the test unit producer
Roland Häder [Sat, 26 Mar 2011 17:27:39 +0000 (17:27 +0000)]
Added a out-going work queue (FiFoStacker instance) to the test unit producer

13 years agoTest units continued, XML MIME type worked-around:
Roland Häder [Sat, 26 Mar 2011 17:04:37 +0000 (17:04 +0000)]
Test units continued, XML MIME type worked-around:
- XMLs must have the MIME type "text/plain" in subversion, with
  "application/xml" they would be threated as binary files... :-(
- Template engine for cruncher test units basicly finished
- TODOs.txt updated

13 years agoIf the class is final, no methods can be overwritten and therefore all methods are...
Roland Häder [Fri, 25 Mar 2011 10:38:30 +0000 (10:38 +0000)]
If the class is final, no methods can be overwritten and therefore all methods are also final

13 years agoMIME types fixed
Roland Häder [Fri, 25 Mar 2011 00:44:14 +0000 (00:44 +0000)]
MIME types fixed

13 years agoContinued on test-unit producer, fixed copyright:
Roland Häder [Fri, 25 Mar 2011 00:42:17 +0000 (00:42 +0000)]
Continued on test-unit producer, fixed copyright:
- Added an unfinished template engine for the test-unit producer
- Added basic XML templates for test-unit producers
- Fixed copyright line (it was copyrighted to the Ship-Simu developer team)
- TODOs.txt updated

13 years agoRequired interface 'Registerable' added
Roland Häder [Tue, 22 Mar 2011 21:20:38 +0000 (21:20 +0000)]
Required interface 'Registerable' added

13 years agoSet application instance first (to prevent a NPE in BaseRegistry) and no 'this' in...
Roland Häder [Tue, 22 Mar 2011 21:18:38 +0000 (21:18 +0000)]
Set application instance first (to prevent a NPE in BaseRegistry) and no 'this' in static environments

13 years agoIn 'core' introduced XmlTemplateEngineFactory used:
Roland Häder [Tue, 22 Mar 2011 00:16:48 +0000 (00:16 +0000)]
In 'core' introduced XmlTemplateEngineFactory used:
- Rewrite to new XmlTemplateEngineFactory (which saves code where some required
  steps could be forgotten)
- Added a method in test unit producer for initialization
- TODOs.txt updated

13 years agoRemoved obsolete parameter 'applicationInstance' from all template engines
Roland Häder [Mon, 21 Mar 2011 23:25:25 +0000 (23:25 +0000)]
Removed obsolete parameter 'applicationInstance' from all template engines

13 years agoProducers should always extend BaseProducer
Roland Häder [Mon, 21 Mar 2011 22:46:23 +0000 (22:46 +0000)]
Producers should always extend BaseProducer

13 years agoProducer/Consumer Pattern introduced:
Roland Häder [Wed, 16 Mar 2011 22:04:09 +0000 (22:04 +0000)]
Producer/Consumer Pattern introduced:
- Producer/Consumer interfaces added
- First producer for test units introduced
- TODOs.txt updated