]> git.mxchange.org Git - hub.git/log
hub.git
10 years agoRenamed method to better naming scheme ('bootstrapping' node or 'bootstrap node'?).
Roland Haeder [Tue, 4 Feb 2014 19:52:52 +0000 (20:52 +0100)]
Renamed method to better naming scheme ('bootstrapping' node or 'bootstrap node'?).

Signed-off-by: Roland Haeder <roland@mxchange.org>
10 years agoThis license is only valid for files in 'contrib'
Roland Haeder [Mon, 3 Feb 2014 19:01:31 +0000 (20:01 +0100)]
This license is only valid for files in 'contrib'

Signed-off-by: Roland Haeder <roland@mxchange.org>
10 years agoMerge branch 'contrib'
Roland 'Quix0r' Haeder [Mon, 3 Feb 2014 18:32:56 +0000 (19:32 +0100)]
Merge branch 'contrib'

Conflicts:
.gitattributes

Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
10 years agomoved for later merge to master
Roland 'Quix0r' Haeder [Mon, 3 Feb 2014 18:31:41 +0000 (19:31 +0100)]
moved for later merge to master

10 years agoAdded 'core' as git submodule
Roland Haeder [Mon, 3 Feb 2014 01:11:14 +0000 (02:11 +0100)]
Added 'core' as git submodule

Signed-off-by: Roland Haeder <roland@mxchange.org>
10 years agomoved for svn-git transission
Roland Häder [Sun, 2 Feb 2014 02:34:27 +0000 (02:34 +0000)]
moved for svn-git transission

10 years agomd5() isn't really much better, but it needs to be fast, please help to find somethin...
Roland Häder [Thu, 23 Jan 2014 21:30:43 +0000 (21:30 +0000)]
md5() isn't really much better, but it needs to be fast, please help to find something that works on 64-bit and 32-bit likewise. Thank you.

11 years agoRemoved code, why do I want to check socket type there? Maybe later it will be re...
Roland Häder [Sat, 19 Oct 2013 15:03:53 +0000 (15:03 +0000)]
Removed code, why do I want to check socket type there? Maybe later it will be re-added

11 years agoYeah, still here. Added __METHOD__
Roland Häder [Fri, 18 Oct 2013 21:53:28 +0000 (21:53 +0000)]
Yeah, still here. Added __METHOD__

11 years agoUpdated domain without a dash :(
Roland Häder [Tue, 30 Jul 2013 07:20:57 +0000 (07:20 +0000)]
Updated domain without a dash :(

11 years agoDouble quotes converted to single
Roland Häder [Sun, 28 Jul 2013 23:28:32 +0000 (23:28 +0000)]
Double quotes converted to single

11 years agoPossible "fix" for wrong cache key:
Roland Häder [Thu, 25 Jul 2013 02:29:26 +0000 (02:29 +0000)]
Possible "fix" for wrong cache key:
- $onlyKeys allows to set database table columns that shall be used for
  creating a cache key, this can be used to look for a node id/ip/port
  combination instead of the default session id.

11 years agoAdded exceptions + some code:
Roland Häder [Thu, 25 Jul 2013 02:21:20 +0000 (02:21 +0000)]
Added exceptions + some code:
- Added two more exceptions for DHT database wrapper
- Added some code that will check for correct conditions in registerNode() and
  updateNode() and makes use of above mentioned exceptions
- Converted more double-quotes to single

11 years agoRenamed 'stacker' -> 'stack'
Roland Häder [Thu, 25 Jul 2013 01:14:40 +0000 (01:14 +0000)]
Renamed 'stacker' -> 'stack'

11 years agoUpdated TODOS.txt
Roland Häder [Thu, 25 Jul 2013 00:39:16 +0000 (00:39 +0000)]
Updated TODOS.txt

11 years agoAdded assert() to check if is really an array
Roland Häder [Thu, 25 Jul 2013 00:32:01 +0000 (00:32 +0000)]
Added assert() to check if  is really an array

11 years agoSome fixes:
Roland Häder [Mon, 22 Jul 2013 00:18:57 +0000 (00:18 +0000)]
Some fixes:
- added missing interface
- added missing space (convention)
- used constant for queu name
- reduced work unit size

11 years agoOne to much ...
Roland Häder [Sun, 21 Jul 2013 22:08:57 +0000 (22:08 +0000)]
One to much ...

11 years agoAdded possible missing interface IteratorAggregate (SPL)
Roland Häder [Sun, 21 Jul 2013 22:07:43 +0000 (22:07 +0000)]
Added possible missing interface IteratorAggregate (SPL)

11 years agoOpps, fix for parser error
Roland Häder [Sun, 21 Jul 2013 21:49:51 +0000 (21:49 +0000)]
Opps, fix for parser error

11 years agoContinued:
Roland Häder [Fri, 19 Jul 2013 21:23:30 +0000 (21:23 +0000)]
Continued:
- renamed some methods to shorter names (it is okay)
- added stubs for node registration in DHT
- Used rather valid() than next() to avoid different behaviours of next()
- Other minor improvements

11 years agoChanged all true/false to TRUE/FALSE respectively as PHP constants are better than...
Roland Häder [Thu, 18 Jul 2013 12:51:15 +0000 (12:51 +0000)]
Changed all true/false to TRUE/FALSE respectively as PHP constants are better than keywords

11 years agoUse constants TRUE/FALSE/NULL instead of keywords true/false/null
Roland Häder [Thu, 18 Jul 2013 12:22:51 +0000 (12:22 +0000)]
Use constants TRUE/FALSE/NULL instead of keywords true/false/null

11 years agoCommented out noisy debug lines
Roland Häder [Wed, 17 Jul 2013 22:40:23 +0000 (22:40 +0000)]
Commented out noisy debug lines

11 years agoOpps, wrong name :(
Roland Häder [Wed, 17 Jul 2013 22:29:26 +0000 (22:29 +0000)]
Opps, wrong name :(

11 years agoRewrote to use constants and newly introduced method initStackers()
Roland Häder [Wed, 17 Jul 2013 22:25:56 +0000 (22:25 +0000)]
Rewrote to use constants and newly introduced method initStackers()

11 years agoDHT data registration/update added to NodeDhtFacade, now every DHT facade must implem...
Roland Häder [Wed, 17 Jul 2013 22:10:43 +0000 (22:10 +0000)]
DHT data registration/update added to NodeDhtFacade, now every DHT facade must implement at least one protected method

11 years agoAdded commented out debug line
Roland Häder [Sat, 6 Jul 2013 20:38:12 +0000 (20:38 +0000)]
Added commented out debug line

11 years agoRenamed endElement() to finishElement(), see the final implementation in BaseXmlTempl...
Roland Häder [Thu, 4 Jul 2013 20:59:02 +0000 (20:59 +0000)]
Renamed endElement() to finishElement(), see the final implementation in BaseXmlTemplateEngine for the reason (naming convention)

11 years agoThis message was to noisy
Roland Häder [Sat, 29 Jun 2013 00:56:28 +0000 (00:56 +0000)]
This message was to noisy

11 years agoDebug message was added at wrong position
Roland Häder [Sat, 29 Jun 2013 00:54:00 +0000 (00:54 +0000)]
Debug message was added at wrong position

11 years agoAdded some more noisy debug lines (they will be commented out later)
Roland Häder [Fri, 28 Jun 2013 23:38:38 +0000 (23:38 +0000)]
Added some more noisy debug lines (they will be commented out later)

11 years agoAssert on important array elements
Roland Häder [Fri, 28 Jun 2013 21:43:47 +0000 (21:43 +0000)]
Assert on important array elements

11 years agoCorrected assert, added debug line
Roland Häder [Sun, 23 Jun 2013 19:52:08 +0000 (19:52 +0000)]
Corrected assert, added debug line

11 years agoAdded assert() calls to make sure the package is valid
Roland Häder [Sun, 23 Jun 2013 19:18:09 +0000 (19:18 +0000)]
Added assert() calls to make sure the package is valid

11 years agoFixed wrong array element
Roland Häder [Sun, 23 Jun 2013 19:00:14 +0000 (19:00 +0000)]
Fixed wrong array element

11 years agoMade lower to upper case:
Roland Häder [Fri, 31 May 2013 20:04:14 +0000 (20:04 +0000)]
Made lower to upper case:
- NULL
- FALSE
- TRUE

As they are constants, lower-case are keywords

11 years agoMissed to initialize arrays before pushing new entries on them. This might be a candi...
Roland Häder [Sat, 4 May 2013 16:38:09 +0000 (16:38 +0000)]
Missed to initialize arrays before pushing new entries on them. This might be a candidate for a rewrite to a 'generic array entry handling' or so

11 years agoRenamed it as this class can be anything that implements Visitable
Roland Häder [Sun, 3 Mar 2013 22:52:31 +0000 (22:52 +0000)]
Renamed it as this class can be anything that implements Visitable

11 years agoUse array_push() instead of [] as array_push() checks if parameter 1 is really an...
Roland Häder [Sun, 3 Mar 2013 22:35:39 +0000 (22:35 +0000)]
Use array_push() instead of [] as array_push() checks if parameter 1 is really an array

11 years agoRemove index key (and maybe later more) as this doesn't need being distributed
Roland Häder [Mon, 25 Feb 2013 09:10:06 +0000 (09:10 +0000)]
Remove index key (and maybe later more) as this doesn't need being distributed

11 years agoTypo fixed + more lines with line numbers
Roland Häder [Mon, 25 Feb 2013 08:16:34 +0000 (08:16 +0000)]
Typo fixed + more lines with line numbers

11 years agoEven more lines ...
Roland Häder [Mon, 25 Feb 2013 08:14:20 +0000 (08:14 +0000)]
Even more lines ...

11 years agoOpps :(
Roland Häder [Mon, 25 Feb 2013 08:12:12 +0000 (08:12 +0000)]
Opps :(

11 years agoAdded line numbers to debug lines as this will become the 'norm'
Roland Häder [Mon, 25 Feb 2013 08:08:10 +0000 (08:08 +0000)]
Added line numbers to debug lines as this will become the 'norm'

11 years agoCommented out noisy lines, added line number as this will become default for all...
Roland Häder [Mon, 25 Feb 2013 07:51:20 +0000 (07:51 +0000)]
Commented out noisy lines, added line number as this will become default for all debug lines

11 years agoMade usage of unsetCriteria() to remove unwanted 'node_list' in DHT as this is double...
Roland Häder [Fri, 22 Feb 2013 08:09:27 +0000 (08:09 +0000)]
Made usage of unsetCriteria() to remove unwanted 'node_list' in DHT as this is double data

11 years agotrue->TRUE, node id included in session id/private key generation
Roland Häder [Fri, 22 Feb 2013 06:33:05 +0000 (06:33 +0000)]
true->TRUE, node id included in session id/private key generation

11 years agoNow correct class :(
Roland Häder [Fri, 22 Feb 2013 05:34:42 +0000 (05:34 +0000)]
Now correct class :(

11 years agoUsed correct method
Roland Häder [Fri, 22 Feb 2013 05:31:56 +0000 (05:31 +0000)]
Used correct method

11 years agoAdded new task for package tags (object registry):
Roland Häder [Fri, 22 Feb 2013 04:43:42 +0000 (04:43 +0000)]
Added new task for package tags (object registry):
- Added new task for package tags (object registry) early initialization as
  rewrites on DHT initialization requires it
- Rewritten DHT initialization to include all supported object types
- Deprecated now all queue/query-related files
- Updated TODOs.txt

11 years agoAlso include accepted node types from own node
Roland Häder [Fri, 22 Feb 2013 04:16:20 +0000 (04:16 +0000)]
Also include accepted node types from own node

11 years agoAlso these ...
Roland Häder [Fri, 22 Feb 2013 04:10:49 +0000 (04:10 +0000)]
Also these ...

11 years agoExpanded debug lines, renamed 'node_type' to 'node_mode' (which makes your DHT databa...
Roland Häder [Fri, 22 Feb 2013 04:09:19 +0000 (04:09 +0000)]
Expanded debug lines, renamed 'node_type' to 'node_mode' (which makes your DHT database corrupt)

11 years agoFix
Roland Häder [Fri, 22 Feb 2013 04:03:14 +0000 (04:03 +0000)]
Fix

11 years agoAdded 'booting' DHT state
Roland Häder [Fri, 22 Feb 2013 04:01:07 +0000 (04:01 +0000)]
Added 'booting' DHT state

11 years agoAlso check for node id to have full match, this requires you to remove all *.serializ...
Roland Häder [Fri, 22 Feb 2013 03:49:02 +0000 (03:49 +0000)]
Also check for node id to have full match, this requires you to remove all *.serialized in db/node_data and db/node_dht/

11 years agoNeed this back for bug tracking
Roland Häder [Fri, 22 Feb 2013 01:18:29 +0000 (01:18 +0000)]
Need this back for bug tracking

11 years agoRemember searchInstance here
Roland Häder [Fri, 22 Feb 2013 00:59:32 +0000 (00:59 +0000)]
Remember searchInstance here

11 years agoTypo fixed
Roland Häder [Thu, 21 Feb 2013 23:50:27 +0000 (23:50 +0000)]
Typo fixed

11 years ago'virigin' is now the correct state at this point
Roland Häder [Thu, 21 Feb 2013 23:49:27 +0000 (23:49 +0000)]
'virigin' is now the correct state at this point

11 years agoUPPER is okay
Roland Häder [Thu, 21 Feb 2013 23:44:49 +0000 (23:44 +0000)]
UPPER is okay

11 years agoOpps, wrong constant name
Roland Häder [Thu, 21 Feb 2013 23:41:57 +0000 (23:41 +0000)]
Opps, wrong constant name

11 years agoCommented out noisy debug lines
Roland Häder [Thu, 21 Feb 2013 23:36:29 +0000 (23:36 +0000)]
Commented out noisy debug lines

11 years agoDon't use empty here, always [NetworkPackage::PACKAGE_DATA_RECIPIENT]
Roland Häder [Thu, 21 Feb 2013 23:34:26 +0000 (23:34 +0000)]
Don't use empty here, always [NetworkPackage::PACKAGE_DATA_RECIPIENT]

11 years agoAdded noisy debug lines, used constants defined in NetworkPackage instead of direct...
Roland Häder [Thu, 21 Feb 2013 23:32:43 +0000 (23:32 +0000)]
Added noisy debug lines, used constants defined in NetworkPackage instead of direct 'foo', 'bar' et cetera

11 years agoOpps :(
Roland Häder [Thu, 21 Feb 2013 23:28:26 +0000 (23:28 +0000)]
Opps :(

11 years agoAdded required assert() to make sure that the requested data in the array is availabl...
Roland Häder [Thu, 21 Feb 2013 22:57:14 +0000 (22:57 +0000)]
Added required assert() to make sure that the requested data in the array is available (do always use my constants if you create such arrays on your own)

11 years agoTry to assert on all virtual recipients
Roland Häder [Mon, 18 Feb 2013 06:02:20 +0000 (06:02 +0000)]
Try to assert on all virtual recipients

11 years agoIntroduced Recipient implentation classes:
Roland Häder [Mon, 18 Feb 2013 05:49:14 +0000 (05:49 +0000)]
Introduced Recipient implentation classes:
- DirectRecipient: A direct session id that needs solving into an ip:port
  combination
- DhtRecipient: A virtual recipient that will cause querying the local DHT
  data for possible recipients (unfinished)
- SelfRecipient: A virtual recipient, yet direct one, as this will be resolved
  into *this* own node's session id
- UpperRecipient A virtual recipient for all boot, master and list node's
  session ids
- Internal TODO for above closed (and nicely solved)

11 years agoRegister dht_bootstrap in object registry so it will be reconnized
Roland Häder [Mon, 18 Feb 2013 04:27:19 +0000 (04:27 +0000)]
Register dht_bootstrap in object registry so it will be reconnized

11 years agoAdded missing XML nodes (copied from announcement.xml as this is currently the same...
Roland Häder [Mon, 18 Feb 2013 04:23:00 +0000 (04:23 +0000)]
Added missing XML nodes (copied from announcement.xml as this is currently the same data but for different purpose)

11 years agoAdded missing XML, config entries for DHT bootstrap
Roland Häder [Sun, 17 Feb 2013 22:40:05 +0000 (22:40 +0000)]
Added missing XML, config entries for DHT bootstrap

11 years agoFix for parser error
Roland Häder [Sun, 17 Feb 2013 22:17:00 +0000 (22:17 +0000)]
Fix for parser error

11 years agoCommented out noisy debug lines
Roland Häder [Thu, 14 Feb 2013 22:59:07 +0000 (22:59 +0000)]
Commented out noisy debug lines

11 years agoAdded 'active' state for DHTs
Roland Häder [Thu, 14 Feb 2013 22:50:55 +0000 (22:50 +0000)]
Added 'active' state for DHTs

11 years agoAdded very basic implementation of updateDhtData()
Roland Häder [Thu, 14 Feb 2013 22:46:09 +0000 (22:46 +0000)]
Added very basic implementation of updateDhtData()

11 years agoFixed wrong super classes
Roland Häder [Thu, 14 Feb 2013 22:26:58 +0000 (22:26 +0000)]
Fixed wrong super classes

11 years agoAdded missing 'package tags'
Roland Häder [Thu, 14 Feb 2013 22:23:40 +0000 (22:23 +0000)]
Added missing 'package tags'

11 years agoRenamed/moved classes, added DHT bootstrap (very early):
Roland Häder [Thu, 14 Feb 2013 22:21:13 +0000 (22:21 +0000)]
Renamed/moved classes, added DHT bootstrap (very early):
- Added very early and untested code for DHT bootstrap
- To make things easier, more HubFooBar classes has been renamed to NodeFooBar
- Also they have to be moved to a new place to fit class prefix

11 years agoAdded very basic implementation of DHT bootstrapping (there are some configuration...
Roland Häder [Thu, 14 Feb 2013 21:58:55 +0000 (21:58 +0000)]
Added very basic implementation of DHT bootstrapping (there are some configuration entries and classes missing)

11 years agoRewritten remaining (old) debug calls:
Roland Häder [Wed, 13 Feb 2013 20:48:05 +0000 (20:48 +0000)]
Rewritten remaining (old) debug calls:
- Used self::createDebugInstance(__CLASS__)->debugOutput() instead of
  $fooInstance->debugOutput() as this is the newer approach
- Added method bootstrapDht() but still unimplemented

11 years agoCommented out some noisy debug lines
Roland Häder [Wed, 13 Feb 2013 20:18:14 +0000 (20:18 +0000)]
Commented out some noisy debug lines

11 years agoAdded stub method insertNodeList()
Roland Häder [Wed, 13 Feb 2013 20:01:58 +0000 (20:01 +0000)]
Added stub method insertNodeList()

11 years agoUsed the same constant to allow later easy changes
Roland Häder [Wed, 13 Feb 2013 19:46:05 +0000 (19:46 +0000)]
Used the same constant to allow later easy changes

11 years agoRenamed method:
Roland Häder [Wed, 13 Feb 2013 19:37:48 +0000 (19:37 +0000)]
Renamed method:
- Renamed method findNodeBySessionId() to findNodeLocalBySessionId() as it only
  searches in locally stored data and doesn't query other nodes
- Added final (temporary) configuration entry 'node_list' which will be a
  BASE64-encoded and serialized array

11 years agoAdded parameter to set last thrown exception for status handling
Roland Häder [Wed, 13 Feb 2013 02:04:08 +0000 (02:04 +0000)]
Added parameter  to set last thrown exception for status handling

11 years agoOpps :(
Roland Häder [Wed, 13 Feb 2013 01:07:42 +0000 (01:07 +0000)]
Opps :(

11 years agoMoved to generic class BaseHandler and interface Handleable
Roland Häder [Tue, 12 Feb 2013 10:13:20 +0000 (10:13 +0000)]
Moved to generic class BaseHandler and interface Handleable

11 years agoHalf-implemented quering DHT for node list
Roland Häder [Tue, 12 Feb 2013 10:07:48 +0000 (10:07 +0000)]
Half-implemented quering DHT for node list

11 years agoRewrites:
Roland Häder [Tue, 12 Feb 2013 06:16:43 +0000 (06:16 +0000)]
Rewrites:
- Rewrote AnnouncementAnswerOkayHandler to use DHT instance instead of
  deprecated wrapper class
- BaseHandler now implements Handleable because both are generics
- NodeDhtFacade now allows forced node updates, if no record is found an
  exception is thrown. This should help to find "stealing" of session ids

11 years agoOpps :( #4
Roland Häder [Tue, 12 Feb 2013 05:45:33 +0000 (05:45 +0000)]
Opps :( #4

11 years agoOpps :( #3
Roland Häder [Tue, 12 Feb 2013 05:44:35 +0000 (05:44 +0000)]
Opps :( #3

11 years agoOpps :( #2
Roland Häder [Tue, 12 Feb 2013 05:43:42 +0000 (05:43 +0000)]
Opps :( #2

11 years agoOpps :(
Roland Häder [Tue, 12 Feb 2013 05:42:57 +0000 (05:42 +0000)]
Opps :(

11 years agoEncapsulated this code (as it is a better style)
Roland Häder [Tue, 12 Feb 2013 05:42:05 +0000 (05:42 +0000)]
Encapsulated this code (as it is a better style)

11 years agoSome rewrites towards more flexible code:
Roland Häder [Tue, 12 Feb 2013 05:37:42 +0000 (05:37 +0000)]
Some rewrites towards more flexible code:
- Got rid of 'ip_port' field and converted it into 'external_ip' (as it is) and
  'listen_port' fields
- Rewrote private method for session id -> ip:port resolving

11 years agoNo node_ prefix as it makes session id look-ups invalid
Roland Häder [Tue, 12 Feb 2013 05:19:00 +0000 (05:19 +0000)]
No node_ prefix as it makes session id look-ups invalid

11 years agoAlways used own session id ... :(
Roland Häder [Tue, 12 Feb 2013 04:56:37 +0000 (04:56 +0000)]
Always used own session id ... :(

11 years agoRemoved session id
Roland Häder [Tue, 12 Feb 2013 04:53:28 +0000 (04:53 +0000)]
Removed session id