]> git.mxchange.org Git - hub.git/log
hub.git
3 years agoContinued:
Roland Häder [Sun, 6 Dec 2020 08:16:44 +0000 (09:16 +0100)]
Continued:
- updated copyright year (long time overdue!)
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
3 years agoContinued:
Roland Häder [Sun, 6 Dec 2020 07:51:42 +0000 (08:51 +0100)]
Continued:
- Application instance in generic registry was a little of an overdoze when
  there is ApplicationHelper::getSelfInstance() around, this means lesser
  method invocations and a bit smaller footprint (one registry entry lesser)
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
3 years agoContinued:
Roland Häder [Sun, 6 Dec 2020 05:54:05 +0000 (06:54 +0100)]
Continued:
- removed all .htaccess files, please secure it on your own on server-side's
  configuration
- introduced LocateableNodeTrait, so far only used in BaseProtocolHandler

Signed-off-by: Roland Häder <roland@mxchange.org>
3 years agoContinued:
Roland Häder [Sun, 6 Dec 2020 05:38:05 +0000 (06:38 +0100)]
Continued:
- moved BaseHubSystem::BOOTSTRAP_NODES_SEPARATOR to Node interface as this is a
  node-related only constant
- moved BaseHubNode::NODE_TYPE_* to Node interface

Signed-off-by: Roland Häder <roland@mxchange.org>
3 years agoContinued:
Roland Häder [Sun, 6 Dec 2020 04:21:50 +0000 (05:21 +0100)]
Continued:
- now all stacks must be initialized no matter which method is invoked, so no
  "auto-magic" initialization as this was a bit Spagetti-like code
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
3 years agoContinued:
Roland Häder [Sat, 5 Dec 2020 23:57:54 +0000 (00:57 +0100)]
Continued:
- removed deprecated ?> PHP tag close
- improved some logger messages
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
3 years agoContinued:
Roland Häder [Sat, 5 Dec 2020 22:26:20 +0000 (23:26 +0100)]
Continued:
- had renamed some namespaces
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 4 Dec 2020 10:16:17 +0000 (11:16 +0100)]
Continued:
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 4 Dec 2020 06:40:30 +0000 (07:40 +0100)]
Continued:
- lesser old-lost " // END - *
- also converted assert() into proper thrown exceptions (more OOP)
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 4 Dec 2020 04:11:40 +0000 (05:11 +0100)]
Continued:
- got rid of deprecated message<->config copying stuff, it should be done more
  naturally

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 23:33:10 +0000 (00:33 +0100)]
Continued:
- fixed NPE when socket is being shutdown on creation
- improved some logger messages
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 22:39:34 +0000 (23:39 +0100)]
Continued:
- renamed more $packageInstance to $handlerInstance when it is type of
  Receivable
- fixed handling of repeated node_data record creation
- removed bad 'invalid' default values
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 20:50:44 +0000 (21:50 +0100)]
Continued:
- improved some debug messages
- thrown more SPL exceptions instead of assert()
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 19:31:45 +0000 (20:31 +0100)]
Continued:
- throw IAE when e.g. a string parameter is empty
- introduced DeliverableTrait
- improved/commented in debug messages
- added type-hints for primitive variables

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 15:31:58 +0000 (16:31 +0100)]
Continued:
- renamed NodeInformationDatabaseFrontend->ifNodeDataIsFound() to
  findFirstNodeData() and also changed return type from bool to $resultInstance
  (SearchableResult)
- changed type-hint from BaseHubNode (abstract class) to Node (interface)
- improved some debug messages

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 08:38:00 +0000 (09:38 +0100)]
Continued:
- $socketInstance is required in BaseConnectionHelper, so moved the trait
  loading there
- also fixed NULL reference as it might not be set at all times

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 08:28:01 +0000 (09:28 +0100)]
Continued:
- added some type-hints for primitive variables
- added some checks on parameters
- some debug messages improved (sprintf() is the norm when parameters are logged)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 08:07:08 +0000 (09:07 +0100)]
Continued:
- removed no longer needed config entry
- used StorableSocket::SOCKET_PROTOCOL_TCP instead of direct 'tcp'
- improved some exception messages a bit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 07:49:01 +0000 (08:49 +0100)]
Continued:
- when socket_listen() is left alone with default (0) value for the $backlog
  parameter and you have SYN cookies disabled in kernel, you will later get
  "Resource temporary unvailable" (code 11)
- this can be only fixed by setting high enough values in config-local.php (not
  config.php) which depends on your used operanting system.
- commented out noisy debug lines
- converted old array() style to "new" [] way

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 3 Dec 2020 06:59:26 +0000 (07:59 +0100)]
Continued:
- renamed StorableSocket->getSocketRecipient() to getSocketRecipientUnl()
- commented-in noisy debug lines as a strange "Resource temporary unavailable"
  happens when SYN cookies are disabled in kernel
- added type-hint for primitive variables
- not really noisy debug lines but later no more needed

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 21:21:52 +0000 (22:21 +0100)]
Continued:
- fixed E_NOTICE and other stuff
- added config entry for disabling (default: enabled) reusing TCP addresses
- commented-in noisy debug lines SYNC flooding happens on my system with this
  program
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 19:33:43 +0000 (20:33 +0100)]
Continued:
- added missing trait(s)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 19:29:39 +0000 (20:29 +0100)]
Continued:
- used more traits than direct instances + getter/setter
- added missing "import" lines
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 18:50:23 +0000 (19:50 +0100)]
Continued:
- replaced $handlerInstance with HandleableTrait trait
- udpated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 18:38:57 +0000 (19:38 +0100)]
Continued:
- replaced $handlerInstance with HandleableTrait
- added deeper namespace
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 17:46:55 +0000 (18:46 +0100)]
Continued:
- renamed PackageData:$status to $packageStatus
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoRefacturing:
Roland Häder [Wed, 2 Dec 2020 12:45:01 +0000 (13:45 +0100)]
Refacturing:
- introduced FragmentableTrait trait
- database wrappers are no more, they are now called frontends
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoRefacturing:
Roland Häder [Wed, 2 Dec 2020 11:41:08 +0000 (12:41 +0100)]
Refacturing:
- introduced traits for $node and $listener instances

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 10:13:37 +0000 (11:13 +0100)]
Continued:
- updated index.php from core framework
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 07:33:47 +0000 (08:33 +0100)]
Continued:
- moved DHT-related template classes to proper sub directories
- replaced CompileableTemplate with newly added CompileableXmlTemplate
  interface as this is closer to what the class is about
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 06:19:47 +0000 (07:19 +0100)]
Continued:
- old array() replaced by "new" []
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 06:04:10 +0000 (07:04 +0100)]
Continued:
- introduced new traits
- moved BaseXmlTemplateEngine to core framework
- convert old array() to "new" [] scheme
- updated core frameworks

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 05:42:04 +0000 (06:42 +0100)]
Continued:
- replaced some instances with newly introduced traits
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 04:56:14 +0000 (05:56 +0100)]
Continued:
- removed PackageData->$rawXml instance and used $packageContent instead
- used ApplicationEntryPoint::exitApplication() instead of die()
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 03:47:42 +0000 (04:47 +0100)]
Continued:
- package and message are different things, so there is no "new package arrived"
  but more decompressed XML
- renamed methods for better understanding them
- added missing config key
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 03:14:49 +0000 (04:14 +0100)]
Continued:
- stringVal() has been moved to StringUtils class and is now static
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 02:57:06 +0000 (03:57 +0100)]
Continued:
- introduced new trait StorableSocketTrait
- added missing methods to interface(s)
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 02:20:28 +0000 (03:20 +0100)]
Continued:
- added missing traits
- more debugging info of setting socket instances
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 00:54:27 +0000 (01:54 +0100)]
Continued:
- renamed "Wrapper" to "Frontend" (was pending anyway)
- added missing trait for above instance
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 2 Dec 2020 00:30:05 +0000 (01:30 +0100)]
Continued:
- REFACTURING: imported new traits, will have more in the future
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 1 Dec 2020 23:43:52 +0000 (00:43 +0100)]
Continued:
- REFACTURING: imported new traits, will have more in the future
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 1 Dec 2020 22:41:52 +0000 (23:41 +0100)]
Continued:
- moved $handerInstance from monolithic BaseFrameworkSystem class (the class
  later cleaned from such instances is doing fine) to proper classes
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 1 Dec 2020 22:25:35 +0000 (23:25 +0100)]
Continued:
- added $helperInstance and getter/setter from framework as it was monolithic there
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 24 Nov 2020 08:21:17 +0000 (09:21 +0100)]
Continued:
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 24 Nov 2020 04:54:22 +0000 (05:54 +0100)]
Continued:
- changed old array() way to new [], still many might be missing
- updated framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 24 Nov 2020 04:02:31 +0000 (05:02 +0100)]
Continued:
- removed no longer needed .htaccess files
- added all public non-static methods to interface DeliverablePackage

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 24 Nov 2020 03:30:03 +0000 (04:30 +0100)]
Continued:
- renamed $class to $className to make it more clear

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 24 Nov 2020 03:23:26 +0000 (04:23 +0100)]
Continued:
- added missing getter/setter for $searchInstance and local class field
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 23 Nov 2020 03:04:31 +0000 (04:04 +0100)]
Continued:
- renamed $contentMessage to $rawXml as this is the actual content (raw XML, ...)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sun, 22 Nov 2020 17:58:49 +0000 (18:58 +0100)]
Continued:
- moved $listInstance from monothlithic BaseFrameworkSystem to proper classes
- NodePingTask had compared to all other tasks a parameter in factory method,
  now this is initialized within the factory method
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sun, 22 Nov 2020 16:38:22 +0000 (17:38 +0100)]
Continued:
- added missing $templateInstance and getter/setter
- converted old array() to "new" [] style
- added missing config entries
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 18:27:24 +0000 (19:27 +0100)]
Continued:
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 18:11:12 +0000 (19:11 +0100)]
Continued:
- re-added $stackInstance and others from refactured core framework
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 16:46:44 +0000 (17:46 +0100)]
Continued:
- re-added $databaseInstance from monolithic BaseFrameworkSystem
- BaseFrameworkSystem->hex2dec() has moved to StringUtils::hex2dec()
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 16:46:44 +0000 (17:46 +0100)]
Continued:
- re-added $databaseInstance from monolithic BaseFrameworkSystem
- BaseFrameworkSystem->hex2dec() has moved to StringUtils::hex2dec()
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 16:26:45 +0000 (17:26 +0100)]
Continued:
- $directoryInstanced added from monolithic BaseFrameworkSystem class
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 14:50:08 +0000 (15:50 +0100)]
Continued:
- convertToClassName() is now in StringUtils
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 13:40:30 +0000 (14:40 +0100)]
Continued:
- monolithing BaseFrameworkSystem->getConfigInstance() is no more, best is to
  use FrameworkBootstrap::getConfigurationInstance() instead
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 7 Nov 2020 13:00:43 +0000 (14:00 +0100)]
Continued:
- ApplicationHelper now doesn't have all these fields set, BaseApplication holds it
- all __construct()'s $className parameter have now a type-hint "string" set
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 17:14:52 +0000 (18:14 +0100)]
Continued:
- Local/Remote are both fine alone

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 15:41:01 +0000 (16:41 +0100)]
Continued:
- reduces memory-footprint: moved $protocolName to proper classes, not in a
  monolithic super class
- moved $packageHandlerInstance, $listenerInstance, $sourceInstance to proper
  classes, monolithic classes are a bad design idea
- removed $infoInstance, $protocolInstance, $locatorInstance,
  $communicatorInstance, $packageInstance and getter/setter as it was no longer
  used

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 15:31:04 +0000 (16:31 +0100)]
Continued:
- $minableInstance moved to BaseMinerProducer
- $peerSuffix can be empty

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoRewrites:
Roland Häder [Fri, 6 Nov 2020 15:14:06 +0000 (16:14 +0100)]
Rewrites:
- Added type-hints: string, int, bool an other primitive types
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 13:44:41 +0000 (14:44 +0100)]
Continued:
- don't throw exceptions in private methods, they cannot be tested or very
  difficult there

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 13:18:28 +0000 (14:18 +0100)]
Continued:
- also here, the senderId is required already

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 13:14:43 +0000 (14:14 +0100)]
Continued:
- if "Resource temporary unavailable" occurs but there had been some read data
  from the socket, don't discard it but add it to the stacker
- used getLastSocketErrorMessage() instead of "raw" socket_strerror()

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 13:00:45 +0000 (14:00 +0100)]
Continued:
- fixed some more namespaces, removed old-lost config entries

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Nov 2020 12:51:06 +0000 (13:51 +0100)]
Continued:
- fixed namespaces due to previous seperation of miner and cruncher classes
- imported missing classes/interfaces

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 5 Nov 2020 23:58:26 +0000 (00:58 +0100)]
Continued:
- renamed logger strings

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 5 Nov 2020 23:03:47 +0000 (00:03 +0100)]
Continued:
- introduced abstract classes BaseCruncherProducer and BaseMinerProducer as the
  cruncher won't have a miner registry key ready.
- added missing namespaces
- imported missing classes/interfaces

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 4 Nov 2020 13:55:24 +0000 (14:55 +0100)]
Continued:
- added a lot namespaces to classes and configuration entries
- added "import" lines
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 4 Nov 2020 13:25:09 +0000 (14:25 +0100)]
Continued:
- fixed config entry for controller resolver, still the fuse command class is
  not implemented yet
- imported missing class
- updated core framework
- updated README file

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 3 Nov 2020 19:08:17 +0000 (20:08 +0100)]
Continued:
- the SocketFactory class was invoking complicated createConnectionFromPackageInstance()
  method which didn't fit naming-convention. It is now renamed to
  "create<ClassName>" scheme and can be created by default ObjectFactory's
  factory methods.
- improved some debug lines

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 3 Nov 2020 17:57:15 +0000 (18:57 +0100)]
Continued:
- renamed getSocketPeerName() to determineSocketPeerName()
- improved/added debug lines
- sorted members a little

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 3 Nov 2020 14:41:58 +0000 (15:41 +0100)]
Continued:
- improved/added debug lines (using sprintf()) is the norm)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 3 Nov 2020 13:57:18 +0000 (14:57 +0100)]
Continued:
- introduced handleIncomingSocket() which currently just invokes the handler's
  method
- Improved or added/commented-in debug lines

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 2 Nov 2020 17:36:32 +0000 (18:36 +0100)]
Continued:
- non-incoming sockets are always skipped (and advanced to next one)
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 2 Nov 2020 15:34:20 +0000 (16:34 +0100)]
Continued:
- isIncomingSocketRegistered() now requires a Listenable instance as parameter
- further fixes for receiving raw package data. It seem to be a race-condition?
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sun, 1 Nov 2020 20:29:44 +0000 (21:29 +0100)]
Continued:
- also allow senderAddress, not just senderId
- WIP: still a mismatching hash is generated
- $traceArray[args] might not be set

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 31 Oct 2020 20:54:54 +0000 (21:54 +0100)]
Continued:
- aren't HTML but HTTP

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 29 Oct 2020 18:31:07 +0000 (19:31 +0100)]
Continued:
- make sure $sessionId is set. If not, this indicates that
  PackageData::setSessionId() was not invoked.

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoWIP-continued:
Roland Häder [Thu, 29 Oct 2020 17:46:06 +0000 (18:46 +0100)]
WIP-continued:
- rewrites towards DeliverableMessage (not Package) interface

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoWIP-continued:
Roland Häder [Thu, 29 Oct 2020 17:16:02 +0000 (18:16 +0100)]
WIP-continued:
- rewrites towards DeliverableMessage (not Package) interface

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 29 Oct 2020 15:36:31 +0000 (16:36 +0100)]
Continued:
- commented out noisy debug lines
- fixed mixing of content tags and content hash
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 29 Oct 2020 13:56:54 +0000 (14:56 +0100)]
Continued:
- further rewrites from array to PackageData class
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 29 Oct 2020 11:56:01 +0000 (12:56 +0100)]
Continued:
- implemented NodeDhtWrapper::findNodeLocalByLocatorInstance()
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 29 Oct 2020 10:50:42 +0000 (11:50 +0100)]
Continued:
- sorted members
- public static methods are always there, no need to have them in interfaces

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 28 Oct 2020 07:35:41 +0000 (08:35 +0100)]
Continued:
- activated own exception handler
- ASSERT_WARNING enabled

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 20:18:40 +0000 (21:18 +0100)]
Continued:
- renamed $unlInstance to $locatorInstance
- implemented findNodeByUniversalNodeLocator()
- WIP: started implementing looking up session id by UNL (internal or external)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 18:20:12 +0000 (19:20 +0100)]
Continued:
- added more debug lines
- renamed some methods, typos mostly

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 13:12:09 +0000 (14:12 +0100)]
Continued:
- added some debug lines
- no need to set NULL in a constructor (for this class)
- renamed local variable $errorName to $errorCode

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 12:28:04 +0000 (13:28 +0100)]
Continued:
- moved socketResource from 'core' project to SocketContainer class
- added more debug lines
- fixed comments for $packageData (array) to $packageInstance transition
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 10:24:25 +0000 (11:24 +0100)]
Continued:
- assertitions are to soft, better throw hard exceptions
- needed to solve recipientId to UNL after receiving and decoding a raw package

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 10:00:27 +0000 (11:00 +0100)]
Continued:
- renamed NETWORK_TARGET_* to RECIPIENT_TYPE_*

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 09:57:57 +0000 (10:57 +0100)]
Continued:
- renamed packageInstance -> handlerInstance as this is no longer the package
  but the handler of the package
- added some debug lines
- 'fake' package status removed

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 27 Oct 2020 09:12:33 +0000 (10:12 +0100)]
Continued:
- There was some mixing of recipient type (direct, dht, self, upper, ...)
  with the node's (recipient's) session id. This is now fixed and sorted out.
  So the recipient type remains that way and is never being changed to session
  id.

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 16:55:01 +0000 (17:55 +0100)]
Continued:
- commented out print_r() debug line

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 16:45:36 +0000 (17:45 +0100)]
Continued:
- commented out noisy debug lines, still the unimplemented method in socket
  listener will flood output

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 15:24:30 +0000 (16:24 +0100)]
Continued:
- throwed more InvalidArgumentException when some method arguments are not valid

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 15:13:26 +0000 (16:13 +0100)]
Continued:
- recipientId is the proper one
- also commented out

Signed-off-by: Roland Häder <roland@mxchange.org>