]> git.mxchange.org Git - hub.git/log
hub.git
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>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 15:10:53 +0000 (16:10 +0100)]
Continued:
- now proper interface used

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 15:08:29 +0000 (16:08 +0100)]
Continued:
- added missing properties PackageData::$rawData and PackageData::$errorCode
  with getter/setter
- ops, missed to rename this!

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 15:04:50 +0000 (16:04 +0100)]
Continued:
- further rewrites from type-unsafe array $rawData to $packageInstance

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 14:50:07 +0000 (15:50 +0100)]
Continued:
- introduced BaseHubTask for holding nodeInstance
- added more noisy debug lines
- some more rewrites (WIP!)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 13:23:10 +0000 (14:23 +0100)]
Continued:
- implemented PackageData::getAllAsArray() with PHP's reflection classes
- added more debug code
- fixed various bugs
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 10:13:01 +0000 (11:13 +0100)]
Continued:
- recipientType was used in an ambicious way: type != UNL

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 10:01:11 +0000 (11:01 +0100)]
Continued:
- renamed *ByPackageData to *ByPackageInstance
- renamed more old-lost remains of $packageData (removed type-unsafe array) with
  modern and type-safe $packageInstance

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 08:49:10 +0000 (09:49 +0100)]
Continued:
- fixed some more old $packageData to $packageInstance

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 06:25:47 +0000 (07:25 +0100)]
Continued:
- added missing fields senderAddress, senderPort, recipientType and status

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 05:55:50 +0000 (06:55 +0100)]
Continued:
- moved assemblerInstance to BaseHubHandler class
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 04:38:00 +0000 (05:38 +0100)]
Continued:
- Implemented SocketContainer::bindSocketToFile()
- ops, needs to be listenPort and not listenAddress again
- socketType is not yet know in constructor, this will be later set
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 04:27:45 +0000 (05:27 +0100)]
Continued:
- no need to debug these lines
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 04:16:26 +0000 (05:16 +0100)]
Continued:
- $this and $this->getSocketResource() can be reduced to $this only and let the
  exception's code invoke the getter method.
- Removed deprecated $socketData array, this info is now fully stored in $this
  already

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 04:03:39 +0000 (05:03 +0100)]
Continued:
- should be socket's protocol
- removed setter debug lines

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 03:54:19 +0000 (04:54 +0100)]
Continued:
- SocketContainer->bindSocketTo() is now split into bindSocketToFile() and
  bindSocketToListener()
- also fixed wrong getter/setter invocation

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 26 Oct 2020 00:16:37 +0000 (01:16 +0100)]
Continued:
- Let's keep nodeInstance as a class field to avoid tons of invocations of the
  factory method. It is a bit of a trade-off, as the memory foot-print may
  raise but so does performance and invocations may lower resulting in better
  performance.

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinue:
Roland Häder [Sun, 25 Oct 2020 12:27:11 +0000 (13:27 +0100)]
Continue:
- removed all deprecated SOCKET_ARRAY_INDEX_* constants with proper setter
  invocations, still most are not implemented yet
- needed to make setListerInstance() public

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 28 Sep 2020 05:14:35 +0000 (07:14 +0200)]
Continued:
- added missing imports

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 22 Aug 2020 08:50:43 +0000 (10:50 +0200)]
Continued:
- added packageDataInstance property, still some fields are missing
- added very noisy debug lines

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 21 Aug 2020 18:32:08 +0000 (20:32 +0200)]
Continued:
- fixed name for factory and also "imported" it
- added missing properties $contentHash and $packageContent with setters and getters

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 21 Aug 2020 16:48:39 +0000 (18:48 +0200)]
Continued:
- Added $socketFile and $socketType properties to PackageData class
- moved delivery/receiving classes/interfaces to proper packages

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 1 Aug 2019 12:21:31 +0000 (14:21 +0200)]
Continued:
- updated 'core' to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 1 Aug 2019 06:43:35 +0000 (08:43 +0200)]
Continued:
- updated copyright year and holder of "Apt-Proxy" sub project files

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 1 Aug 2019 06:42:24 +0000 (08:42 +0200)]
Continued:
- updated copyright year and holder of "Miner" sub project files

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 1 Aug 2019 06:41:43 +0000 (08:41 +0200)]
Continued:
- updated copyright year and holder of "Cruncher" sub project files

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 1 Aug 2019 06:36:16 +0000 (08:36 +0200)]
Continued:
- updated copyright year of "crawler" sub project files
- and changed it to proper "Hub" team (maybe later FSF?)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 1 Aug 2019 06:32:34 +0000 (08:32 +0200)]
Continued:
- more rewrites of $packageData array to PackageData class ($packageInstance)
- renamed NetworkPackage to NetworkPackageHandler and moved to proper namespace
- updated 'core'

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoUpdated core.
Roland Häder [Sun, 25 Nov 2018 00:07:45 +0000 (01:07 +0100)]
Updated core.

4 years agoContinued:
Roland Häder [Tue, 13 Nov 2018 23:40:46 +0000 (00:40 +0100)]
Continued:
- also output protocol name here

4 years agoContinued: (finally!)
Roland Häder [Tue, 13 Nov 2018 23:36:02 +0000 (00:36 +0100)]
Continued: (finally!)
- updated different (!) copyright years to 2018 ...
- added missing "imports"
- added debug lines
- added output current protocol name in base decorator class
- added support for ip:port in NetworkPackage class (was only partly there)
- added namespaces to config entries
- possible fix is now included for self-connect bug

4 years agoContinued:
Roland Häder [Sun, 8 Jul 2018 06:58:33 +0000 (08:58 +0200)]
Continued:
- introduced NodeLocatorUtils to avoid monolithic code style
- avoided abusing exceptions for program flow control (don't do that) by
  pre-checking conditions and then avoid bad invocations
- updated framework to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sun, 8 Jul 2018 05:07:09 +0000 (07:07 +0200)]
Continued:
- no need for scanner class and task, the URL source class can handle this
- setApplicationName() is no longer needed
- invoke setCommandName() (maybe exists?) instead
- Removed crawler instance from BaseHubSystem
- moved URL source instance from same class to BaseUrlSourceTask
- updated core to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Fri, 6 Jul 2018 00:23:25 +0000 (02:23 +0200)]
Continued:
- added missing "import"

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 5 Jul 2018 21:46:14 +0000 (23:46 +0200)]
Continued:
- added missing getter for UNL protocol
- ops, outgoing TCP/UDP/any connections should be set to 'outgoing', not
  'server'
- commented out/in debug lines

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 4 Jul 2018 00:14:21 +0000 (02:14 +0200)]
Continued:
- commented out noisy debug lines
- updated core

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 3 Jul 2018 22:46:49 +0000 (00:46 +0200)]
Continued:
- need to extend BaseApplication for now (see its constructor)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 3 Jul 2018 22:40:27 +0000 (00:40 +0200)]
Continued:
- renamed $app -> $applicationInstance
- assignApplicationData() has no parameters now
- updated core to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sun, 25 Mar 2018 03:15:53 +0000 (05:15 +0200)]
Continued:
- updated 'core' to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Sat, 20 Jan 2018 18:45:29 +0000 (19:45 +0100)]
Continued:
- Registry was renamed to GenericRegistry

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Thu, 18 Jan 2018 23:09:51 +0000 (00:09 +0100)]
Continued:
- renamed NodeHelper -> Node and bound it to FrameworkInterface as this is no
  node helper (see Helper interface) but the node instance itself
- fixed namespaces in class template files (no real class file, like "class_")
- fixed "new" domain (shipsimu.org, without the dash)
- fixed bug in bad private key's hash
- need to create a dummy array with node data when node is starting first time
  (no data in db/node_data/ )
- started (unfinished) fixing assertions
- updated core framework to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 3 Jan 2018 23:44:41 +0000 (00:44 +0100)]
Continued:
- ported crawler sub project to new 'core' framework
- had to copy some setter/getter to base classes where BaseHubSystem was not
  inherited from

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 3 Jan 2018 22:14:35 +0000 (23:14 +0100)]
Continued:
- made all base classes abstract like in 'core' framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 3 Jan 2018 22:04:33 +0000 (23:04 +0100)]
Continued:
- started porting crawler sub project to new framework
- fixed namespaces for task classes, \Task should always be included
- added commented-out/in debug lines for hub

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Wed, 3 Jan 2018 20:58:01 +0000 (21:58 +0100)]
Continued:
- removed deprecated files
- updated TODOs.txt
- updated 'core' framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 2 Jan 2018 22:49:06 +0000 (23:49 +0100)]
Continued:
- updated core framework to latest commit
- ported main application to new framework with Tld\Domain\ namespace added
  and many many more
- updated .gitignore
- updated .gitattributes

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued a bit:
Roland Häder [Sat, 17 Jun 2017 20:39:55 +0000 (22:39 +0200)]
Continued a bit:
- implemented info-filler method with data from socket peer
- implemented enableSocketOutOfBandData()
- commented out many noisy debug lines
- made some debug lines to noisy, as they are really noisy under PHP 7
- some small fixes (e.g. tpzo in method name)
- updated 'core' framework to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued a bit:
Roland Häder [Tue, 30 May 2017 20:12:23 +0000 (22:12 +0200)]
Continued a bit:
- splitted sender address and port to have both being copyable (needed later on)
  to ShareableInfo class
- used some lesser socket_strerr() but socketInstance calls

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoFixes:
Roland Häder [Tue, 30 May 2017 19:27:00 +0000 (21:27 +0200)]
Fixes:
- these iterators must be stored separately, else file/tcp/udp socket instances
  getting entirely mixed up
- also better splitted configuration entries, some more don't really hurt
- better debug message (info was not really correct)

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 30 May 2017 15:54:53 +0000 (17:54 +0200)]
Continued:
- added much more debug lines
- UdpListener::initListener() or so, is now rewritten (much untested)
- BaseListener::ifListenerAcceptsPackageData() is now implemented and should
  always be used to check if the package's socket protocol is accepted
- imported SocketAlreadyRegisteredException
- imported ShareableInfo
- imported LogicException (and maybe others)
- need to get socket resource from socketInstance
- updated core

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 30 May 2017 12:00:52 +0000 (14:00 +0200)]
Continued:
- enabled all(?) debug messages
- use StorableSocket::SOCKET_PROTOCOL_FOO instead of 'foo' which is more flexible
- added more debug messages

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Tue, 30 May 2017 09:48:06 +0000 (11:48 +0200)]
Continued:
- start rewriting writing raw data to socket towards StorableSocket
- added more debug messages
- renamed class constants to naming-convention
- rewrote more code to StorableSocket (method writeBufferToSocketByArray() introduced)
- added missing parameter $className
- getConnectionClassNameFromSocket() is now fully rewritten

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 29 May 2017 20:52:35 +0000 (22:52 +0200)]
Continued:
- implemented translateLastSocketErrorCodeToName()
- implemented getSocketRecipient<Address|Port>()
- no more socketResource here (and elsewhere will follow)
- updated core framework
- more debug messages added
- registering helper/listener instances with socket instance must be done
  outaside constructor, much easier code
- for this, registerInfoInstance() is now implemented
Signed-off-by: Roland Häder <roland@mxchange.org>
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 29 May 2017 19:22:54 +0000 (21:22 +0200)]
Continued:
- method renamed to getConnectionClassNameFromSocket() which now only accepts a StorableSocket class
- resolveStateByPackage() now accepts StorableSocket instead of socket resource
- also extend HubInterface
- introduced BaseHubHandler to implement HubInterface (or what is missing + protected setter/getter)
- introduced BaseHubDatabaseWrapper to implement HubInterface
- more debug messages
- other stuff improved
- imported (Base|Peer)StateResolver
- imported StorableSocket
- imported (Lookupable)PeerState
- imported PeerStateable
- created new namespaces
- moved classes around

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 29 May 2017 18:13:47 +0000 (20:13 +0200)]
Continued:
- moved socketInstance +getter/setter to BaseHubSystem
- implemented getUnlAddress()
- implemented getSocketRecipient()
- imported PeerStateFactory
- imported OutputStream
- imported BaseResolver
- other small fixes
- added missing namespaces to configuration entries
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 29 May 2017 16:21:42 +0000 (18:21 +0200)]
Continued:
- implemented UniversalNodeLocatorFactory + imported it
- imported Registerable
- imported NullPointerException
- imported BaseIpV4ConnectionHelper
- basically finished getUnlPort() and parse methods
- basically finished DefaultPeerPool lookup loop
- more debugging + getRequestInstance()
- added missing namespaces
- added getUnlPort()

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 29 May 2017 15:59:14 +0000 (17:59 +0200)]
Continued:
- imported HelpableNode
- imported SocketDiscoveryFactory, DiscoverableSocket
- imported ProtocolHandlerFactory
- imported BaseProtocolHandler and made it abstract
- imported BaseIpV4ProtocolHandler and it needs to be abstract
- need to implement setter/getter for protocolName
- added missing namespaces to configuration entries

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoMore rewrites:
Roland Häder [Mon, 29 May 2017 15:56:08 +0000 (17:56 +0200)]
More rewrites:
- rewrote more parts towards SocketContainer/StorableStocket class/interface
- still UdpListener is half-finished
- added missing namespace
- imported BaseNodeHelper

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoPrepared next step of socket-rewrites:
Roland Häder [Wed, 24 May 2017 20:04:07 +0000 (22:04 +0200)]
Prepared next step of socket-rewrites:
- instead of direct socket resource, use socket instance (not working now,
  die() has been added, too)
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 22 May 2017 20:47:55 +0000 (22:47 +0200)]
Continued:
- imported PackageDiscoveryFactory, BaseRecipientDiscovery, DiscoverableRecipient
- imported DiscoverableNodeRecipient, RecipientListFactory, (Base)Recipient
- imported ObjectFactory (opps?)
- imported InvalidSessionIdException (also where it is being caught!)
- imported FrameworkException
- imported BaseIterator
- recipients and not receipt! ;-)
- also they are network-relevant and not generic
- added namespaces to configuration entries

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 22 May 2017 20:30:20 +0000 (22:30 +0200)]
Continued:
- imported BaseStream, InputStream
- imported Assembler
- imported (Base|Framework)Feature
- imported Scrypt
- imported DecoderFactory, ChunkHandlerFactory, HandleableChunks
- imported BaseDecoder, Decodeable
- imported BaseDecorator
- added namespaces to configuration entries
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
4 years agoContinued:
Roland Häder [Mon, 22 May 2017 19:25:26 +0000 (21:25 +0200)]
Continued:
- added namespaces to configuration entries
- imported HelpableDht
- imported XmlDhtBootstrapTemplateEngine
- imported NetworkPackageFactory
- imported Compressor
- imported PoolVisitor

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