]> git.mxchange.org Git - hub.git/log
hub.git
12 years agoRenamed all 'node-foo' to 'my-foo' and 'other-bar' to 'your-bar' to make them more...
Roland Häder [Sun, 20 May 2012 12:30:20 +0000 (12:30 +0000)]
Renamed all 'node-foo' to 'my-foo' and 'other-bar' to 'your-bar' to make them more clear

12 years agoError code 'empty_data' is now fully removed and empty data is being silently ignored...
Roland Häder [Sun, 20 May 2012 12:21:34 +0000 (12:21 +0000)]
Error code 'empty_data' is now fully removed and empty data is being silently ignored, some noisy lines commented out

12 years agoAdded message handler for received announcement answer (not yet fully functional...
Roland Häder [Sun, 20 May 2012 12:16:03 +0000 (12:16 +0000)]
Added message handler for received announcement answer (not yet fully functional + die() in method)

12 years agoMessage helper for receiving announcement answers added (not fully finished, the...
Roland Häder [Sun, 20 May 2012 12:04:26 +0000 (12:04 +0000)]
Message helper for receiving announcement answers added (not fully finished, the XML nodes are currently all dropped)

12 years agoWas also very noisy
Roland Häder [Sat, 19 May 2012 20:26:01 +0000 (20:26 +0000)]
Was also very noisy

12 years agoVery noisy function if failing.
Roland Häder [Sat, 19 May 2012 18:36:55 +0000 (18:36 +0000)]
Very noisy function if failing.

12 years agoThis line was required to test previous fix for missing call of resetSerialNumber...
Roland Häder [Sat, 19 May 2012 18:16:37 +0000 (18:16 +0000)]
This line was required to test previous fix for missing call of resetSerialNumber(). RESULT: FIXED

12 years agoOpps :(
Roland Häder [Sat, 19 May 2012 18:14:29 +0000 (18:14 +0000)]
Opps :(

12 years agoAdded debugging, added missing (IMPORTANT) call of resetSerialNumber()
Roland Häder [Sat, 19 May 2012 18:13:25 +0000 (18:13 +0000)]
Added debugging, added missing (IMPORTANT) call of resetSerialNumber()

12 years agoDebug line is really noisy
Roland Häder [Sat, 19 May 2012 17:11:59 +0000 (17:11 +0000)]
Debug line is really noisy

12 years agoRemoved generic array handling, always have special arrays. Added verification of...
Roland Häder [Sat, 19 May 2012 17:10:27 +0000 (17:10 +0000)]
Removed generic array handling, always have special arrays. Added verification of connection type to getSocketsByConnectionType()

12 years agoVerification of server socket improved
Roland Häder [Sat, 19 May 2012 16:58:52 +0000 (16:58 +0000)]
Verification of server socket improved

12 years agoAdded verfication of connection type in addPeer(), added more debug
Roland Häder [Sat, 19 May 2012 16:56:47 +0000 (16:56 +0000)]
Added verfication of connection type in addPeer(), added more debug

12 years agoTypo fixed
Roland Häder [Sat, 19 May 2012 16:33:48 +0000 (16:33 +0000)]
Typo fixed

12 years agoAgain :( #2
Roland Häder [Sat, 19 May 2012 16:29:37 +0000 (16:29 +0000)]
Again :( #2

12 years agoNow incoming, outgoing and 'server' pools are possible
Roland Häder [Sat, 19 May 2012 16:29:13 +0000 (16:29 +0000)]
Now incoming, outgoing and 'server' pools are possible

12 years agoAgain :(
Roland Häder [Sat, 19 May 2012 15:39:33 +0000 (15:39 +0000)]
Again :(

12 years agoMore debugging (yupp, more is required), rewrote isSocketRegistered()
Roland Häder [Sat, 19 May 2012 15:39:22 +0000 (15:39 +0000)]
More debugging (yupp, more is required), rewrote isSocketRegistered()

12 years agoMoved registration of socket with fake package data array to listener
Roland Häder [Sat, 19 May 2012 14:18:42 +0000 (14:18 +0000)]
Moved registration of socket with fake package data array to listener

12 years agoTypo fixed :(
Roland Häder [Sat, 19 May 2012 14:09:47 +0000 (14:09 +0000)]
Typo fixed :(

12 years agoAdded experimental registration of sockets which have just appeared with a fake array
Roland Häder [Sat, 19 May 2012 14:07:11 +0000 (14:07 +0000)]
Added experimental registration of sockets which have just appeared with a fake array

12 years agoAlso just for debugging purposes
Roland Häder [Sat, 19 May 2012 13:55:15 +0000 (13:55 +0000)]
Also just for debugging purposes

12 years agoEven more debug lines added, check for SocketContainer added
Roland Häder [Sat, 19 May 2012 13:53:17 +0000 (13:53 +0000)]
Even more debug lines added, check for SocketContainer added

12 years agoUsed factory instead of direct class
Roland Häder [Sat, 19 May 2012 11:22:05 +0000 (11:22 +0000)]
Used factory instead of direct class

12 years agoAlways forgot this :(
Roland Häder [Sat, 19 May 2012 10:54:27 +0000 (10:54 +0000)]
Always forgot this :(

12 years agoMore debugging lines enabled (need to hunt down those bugs already :( ), added check...
Roland Häder [Sat, 19 May 2012 10:54:02 +0000 (10:54 +0000)]
More debugging lines enabled (need to hunt down those bugs already :( ), added check if peer state is 'active' or 'reachable'

12 years agoRewrote many parts, made sockets from socket_accept() blocking IO (see comment why)
Roland Häder [Fri, 18 May 2012 23:03:18 +0000 (23:03 +0000)]
Rewrote many parts, made sockets from socket_accept() blocking IO (see comment why)

12 years agoFirst bind(), then listen(), then settings
Roland Häder [Fri, 18 May 2012 22:10:00 +0000 (22:10 +0000)]
First bind(), then listen(), then settings

12 years agoMoved some socket initializations before socket_bind(), made setErrorCode() public
Roland Häder [Fri, 18 May 2012 22:07:10 +0000 (22:07 +0000)]
Moved some socket initializations before socket_bind(), made setErrorCode() public

12 years agoAlso always update this, is there an auto-executing hook available on client-side?
Roland Häder [Fri, 18 May 2012 21:28:26 +0000 (21:28 +0000)]
Also always update this, is there an auto-executing hook available on client-side?

12 years agoMore debugging, ignore *.serialized in node_list
Roland Häder [Fri, 18 May 2012 21:27:29 +0000 (21:27 +0000)]
More debugging, ignore *.serialized in node_list

12 years agoTo much noisy, sorry guys
Roland Häder [Fri, 18 May 2012 20:25:49 +0000 (20:25 +0000)]
To much noisy, sorry guys

12 years agoAlso this ... :(
Roland Häder [Fri, 18 May 2012 20:24:56 +0000 (20:24 +0000)]
Also this ... :(

12 years agoAlso this ...
Roland Häder [Fri, 18 May 2012 20:21:15 +0000 (20:21 +0000)]
Also this ...

12 years agoAdded internal IP handling (unfinished), added package tags
Roland Häder [Fri, 18 May 2012 20:20:56 +0000 (20:20 +0000)]
Added internal IP handling (unfinished), added package tags

12 years agoOpps ... :(
Roland Häder [Thu, 17 May 2012 21:59:25 +0000 (21:59 +0000)]
Opps ... :(

12 years agoAgain #2 ... :(
Roland Häder [Thu, 17 May 2012 21:50:24 +0000 (21:50 +0000)]
Again #2 ... :(

12 years agoAgain ... :(
Roland Häder [Thu, 17 May 2012 21:49:45 +0000 (21:49 +0000)]
Again ... :(

12 years agoOpps ...
Roland Häder [Thu, 17 May 2012 21:48:54 +0000 (21:48 +0000)]
Opps ...

12 years agoAdded announcement answer XML, template engine and acceptance of announcements
Roland Häder [Thu, 17 May 2012 21:47:29 +0000 (21:47 +0000)]
Added announcement answer XML, template engine and acceptance of announcements

12 years agoPlease don't call addArrayToDataSet() in class NodeMessageSelfConnectHandler, this...
Roland Häder [Thu, 17 May 2012 19:54:29 +0000 (19:54 +0000)]
Please don't call addArrayToDataSet() in class NodeMessageSelfConnectHandler, this is never supported

12 years agoAdded missing node state 'reachable'
Roland Häder [Thu, 17 May 2012 19:26:44 +0000 (19:26 +0000)]
Added missing node state 'reachable'

12 years agoAdded method nodeHasSelfConnected() which changes the state to 'reachable' which...
Roland Häder [Thu, 17 May 2012 19:22:53 +0000 (19:22 +0000)]
Added method nodeHasSelfConnected() which changes the state to 'reachable' which is true from the node's self-view

12 years agoAdded basicly finished (except TODO) handling of self-connect messages
Roland Häder [Thu, 17 May 2012 19:16:44 +0000 (19:16 +0000)]
Added basicly finished (except TODO) handling of self-connect messages

12 years agoMakes more sense ... opps
Roland Häder [Thu, 17 May 2012 19:09:17 +0000 (19:09 +0000)]
Makes more sense ... opps

12 years agodie() expanded with __METHOD__, wrong things removed from NodeMessageSelfConnectHandl...
Roland Häder [Thu, 17 May 2012 19:08:21 +0000 (19:08 +0000)]
die() expanded with __METHOD__, wrong things removed from NodeMessageSelfConnectHandler's method

12 years agoAdded class for handling self-connect messages
Roland Häder [Thu, 17 May 2012 19:05:31 +0000 (19:05 +0000)]
Added class for handling self-connect messages

12 years agoAdded 'registering of other nodes' ability, added protocol name to relevant method...
Roland Häder [Thu, 17 May 2012 18:56:15 +0000 (18:56 +0000)]
Added 'registering of other nodes' ability, added protocol name to relevant method signatures

12 years agoAdded handler for announcement messages (not yet functional)
Roland Häder [Thu, 17 May 2012 15:23:05 +0000 (15:23 +0000)]
Added handler for announcement messages (not yet functional)

12 years agoOpps ... :(
Roland Häder [Thu, 17 May 2012 13:46:06 +0000 (13:46 +0000)]
Opps ... :(

12 years agoWhile self-connect is running, it might be already announced which is fine
Roland Häder [Thu, 17 May 2012 13:42:21 +0000 (13:42 +0000)]
While self-connect is running, it might be already announced which is fine

12 years agoAdded *REQUIRED* call compileConfigInVariables(), added missing config entry 'node_id'
Roland Häder [Thu, 17 May 2012 11:48:48 +0000 (11:48 +0000)]
Added *REQUIRED* call compileConfigInVariables(), added missing config entry 'node_id'

12 years agoAdded missing method readSelfConnectData()
Roland Häder [Thu, 17 May 2012 10:28:01 +0000 (10:28 +0000)]
Added missing method readSelfConnectData()

12 years agoOpps ...
Roland Häder [Thu, 17 May 2012 10:26:21 +0000 (10:26 +0000)]
Opps ...

12 years agoAdded filter for self-connect attempts
Roland Häder [Thu, 17 May 2012 10:25:03 +0000 (10:25 +0000)]
Added filter for self-connect attempts

12 years agoFilter for package tags added, handling of new messages basicly finished
Roland Häder [Thu, 17 May 2012 10:15:26 +0000 (10:15 +0000)]
Filter for package tags added, handling of new messages basicly finished
- Interface 'FilterablePackage' added
- Filter PackageAnnouncementTagFilter added which shall filter announcement
  messages and process them
- Class PackageFilterChain added which is a specialized filter chain for
  handling packages (or their messages)
- Stack for 'processed messages' added
- Other minor improvements
- TODOs.txt updated

12 years agoCopyright notice updated
Roland Häder [Wed, 16 May 2012 20:49:52 +0000 (20:49 +0000)]
Copyright notice updated

12 years agoRemoved unused nodes, they may never come back...
Roland Häder [Tue, 15 May 2012 16:47:40 +0000 (16:47 +0000)]
Removed unused nodes, they may never come back...

12 years agoSome comments improved #2
Roland Häder [Tue, 8 May 2012 22:12:41 +0000 (22:12 +0000)]
Some comments improved #2

12 years agoSome comments improved
Roland Häder [Tue, 8 May 2012 22:03:21 +0000 (22:03 +0000)]
Some comments improved

12 years agoRenamed HubDescriptorHelper to HubAnnouncementHelper for making it more clear
Roland Häder [Tue, 8 May 2012 22:01:29 +0000 (22:01 +0000)]
Renamed HubDescriptorHelper to HubAnnouncementHelper for making it more clear

12 years agoMore debug messages
Roland Häder [Tue, 8 May 2012 20:33:15 +0000 (20:33 +0000)]
More debug messages

12 years agoThe decoded package is now fully 'decoded' and got handled over into the 'new message...
Roland Häder [Tue, 8 May 2012 20:20:06 +0000 (20:20 +0000)]
The decoded package is now fully 'decoded' and got handled over into the 'new message' queue. Still there is unfinished business in handleNewlyArrivedMessage() (please pardon me).

12 years agoSome comments updated (very minor)
Roland Häder [Sun, 6 May 2012 00:44:00 +0000 (00:44 +0000)]
Some comments updated (very minor)

12 years agoRemoved obsolete parameter
Roland Häder [Sun, 6 May 2012 00:09:31 +0000 (00:09 +0000)]
Removed obsolete parameter

12 years agoAlso this :(
Roland Häder [Sat, 5 May 2012 23:54:52 +0000 (23:54 +0000)]
Also this :(

12 years agoForgot this ... :(
Roland Häder [Sat, 5 May 2012 23:53:15 +0000 (23:53 +0000)]
Forgot this ... :(

12 years agoDecoding of raw package message basicly finished, external public ip now included...
Roland Häder [Sat, 5 May 2012 23:52:59 +0000 (23:52 +0000)]
Decoding of raw package message basicly finished, external public ip now included in announcement

12 years agoAdded commented out debug message
Roland Häder [Sat, 5 May 2012 23:40:14 +0000 (23:40 +0000)]
Added commented out debug message

12 years agoNode-id is now deemed 'classified' because it will be used to create signatures,...
Roland Häder [Sat, 28 Apr 2012 09:04:21 +0000 (09:04 +0000)]
Node-id is now deemed 'classified' because it will be used to create signatures, so don't give it out. If you do so, someone else can sign his traffic with your digital signature

12 years agoIntroduced new meta peer state 'problem'
Roland Häder [Sat, 28 Apr 2012 08:37:05 +0000 (08:37 +0000)]
Introduced new meta peer state 'problem'

12 years agoUse getServerAddress() instead of ConsoleTools
Roland Häder [Fri, 27 Apr 2012 20:33:52 +0000 (20:33 +0000)]
Use getServerAddress() instead of ConsoleTools

12 years agoSome important improvements:
Roland Häder [Fri, 27 Apr 2012 20:31:31 +0000 (20:31 +0000)]
Some important improvements:
- The recipient IP must now match with external IP + TCP port (please fix this!)
- ... or the reciepient IP must match with own (internal) IP
- TODOs.txt updated

12 years agoLarger access level ... :(
Roland Häder [Fri, 27 Apr 2012 20:23:40 +0000 (20:23 +0000)]
Larger access level ... :(

12 years agoAlso this ...
Roland Häder [Fri, 27 Apr 2012 20:21:06 +0000 (20:21 +0000)]
Also this ...

12 years agoSome refacturings:
Roland Häder [Fri, 27 Apr 2012 20:16:46 +0000 (20:16 +0000)]
Some refacturings:
- Moved [g|s]et[Node|Session]Id() from BaseHubNode to BaseHubSystem
- This allows $nodeInstance to be removed from some method signatures
- Debug line added (which will be noisy, I know)
- TODOs.txt updated

12 years agoUsed node id (ex. 'hub id') as old salt and no fixed salt because it will be differen...
Roland Häder [Fri, 27 Apr 2012 20:07:43 +0000 (20:07 +0000)]
Used node id (ex. 'hub id') as old salt and no fixed salt because it will be different from node to node

12 years agoThis block has to be the last to make sure that pendingData contains all received...
Roland Häder [Fri, 27 Apr 2012 20:01:13 +0000 (20:01 +0000)]
This block has to be the last to make sure that pendingData contains all received blocks

12 years agoVery noisy debug messages commented out
Roland Häder [Fri, 27 Apr 2012 19:54:36 +0000 (19:54 +0000)]
Very noisy debug messages commented out

12 years agoAgain contunued on 'hub' project:
Roland Häder [Fri, 27 Apr 2012 19:38:26 +0000 (19:38 +0000)]
Again contunued on 'hub' project:
- Receiving (but not processing) of local received packages (not forwareded
  packages) is now basicly finished
- TODOs.txt updated

12 years ago'hub' project continued:
Roland Häder [Fri, 27 Apr 2012 19:36:27 +0000 (19:36 +0000)]
'hub' project continued:
- prependHashChunk() does now add the full hash-chunk to the array, not chunked
  by itself as before. This change made reading the package much easier.
- Added more debug lines
- TODOs.txt updated

12 years agoThis is to much noise in debug output
Roland Häder [Fri, 27 Apr 2012 16:49:27 +0000 (16:49 +0000)]
This is to much noise in debug output

12 years ago'hub' project continued:
Roland Häder [Fri, 27 Apr 2012 16:47:27 +0000 (16:47 +0000)]
'hub' project continued:
- discoverSocket() does now throw a NPE if listenerInstance is NULL
- Missing rewind() call in BaseList added
- Some debug messages added/improved
- TODOs.txt updated

12 years ago'hub' project continued:
Roland Häder [Fri, 27 Apr 2012 15:42:00 +0000 (15:42 +0000)]
'hub' project continued:
- New package "decoder" class added which has also a new interface Decodeable
- Handling of incoming packages almost finished
- Loop fixed the second $this->shutdownSocket() call is required
- Many objects have extended BaseFrameworkSystem but should be BaseHubSystem
- TODOs.txt updated

12 years agoRemoved deprecated scripts (please delete them even if you get conflicts)
Roland Häder [Wed, 25 Apr 2012 18:29:06 +0000 (18:29 +0000)]
Removed deprecated scripts (please delete them even if you get conflicts)

12 years agoSome rewriting, TODOs.txt updated:
Roland Häder [Sun, 22 Apr 2012 22:19:52 +0000 (22:19 +0000)]
Some rewriting, TODOs.txt updated:
- Removed double $visitorInstance (BaseFrameworkSystem has already a generic
  instance/setter/getter)
- Some list classes does not implement getListIterator(), please use
  getIterator() instead, the default iterator is (as for now) fine here
- Moved code from constructor to factory method to minimize code in constructor
- TODOs.txt updated due to internal TODOs closed)

12 years agoOpps :(
Roland Häder [Sun, 22 Apr 2012 20:53:23 +0000 (20:53 +0000)]
Opps :(

12 years agoFixed all getSelfInstance
Roland Häder [Sun, 22 Apr 2012 20:17:29 +0000 (20:17 +0000)]
Fixed all getSelfInstance

12 years agoRewrote numbered indexes to assoziative
Roland Häder [Sun, 22 Apr 2012 19:47:38 +0000 (19:47 +0000)]
Rewrote numbered indexes to assoziative

12 years agoFixed a typo, added an assert()
Roland Häder [Sat, 24 Mar 2012 08:27:37 +0000 (08:27 +0000)]
Fixed a typo, added an assert()

12 years agoOpps ...
Roland Häder [Fri, 23 Mar 2012 22:44:01 +0000 (22:44 +0000)]
Opps ...

12 years agoAdded methods, added marking of completed arrays:
Roland Häder [Fri, 23 Mar 2012 22:25:55 +0000 (22:25 +0000)]
Added methods, added marking of completed arrays:
- Added methods for assembling chunks to the original package data from a
  completed final array
- Added private method to mark the final array in ChunkHandler as completed
- Resorted method calls on the chunk handkler in HubChunkAssemblerTask
- Other minor rewrites

12 years agoSwitched around sub-tasks, commented out noisy debug line
Roland Häder [Fri, 23 Mar 2012 22:19:18 +0000 (22:19 +0000)]
Switched around sub-tasks, commented out noisy debug line

12 years agoMore fix for the EOP chunk
Roland Häder [Fri, 23 Mar 2012 21:32:46 +0000 (21:32 +0000)]
More fix for the EOP chunk

12 years agoThe final hash is important ... ;)
Roland Häder [Fri, 23 Mar 2012 21:12:46 +0000 (21:12 +0000)]
The final hash is important ... ;)

12 years agoNaming thing fixed :(
Roland Häder [Fri, 23 Mar 2012 21:10:06 +0000 (21:10 +0000)]
Naming thing fixed :(

12 years agoRefactured EOP chunk, now it is formatted as any regular chunk. This makes the code...
Roland Häder [Fri, 23 Mar 2012 21:08:20 +0000 (21:08 +0000)]
Refactured EOP chunk, now it is formatted as any regular chunk. This makes the code in ChunkHandler class not so complicated just for the EOP chunk

12 years agoSmall fix :(
Roland Häder [Fri, 23 Mar 2012 20:32:02 +0000 (20:32 +0000)]
Small fix :(

12 years agoBasicly finished adding verfied chunks to the final arrays (chunk data and hashes...
Roland Häder [Fri, 23 Mar 2012 20:30:33 +0000 (20:30 +0000)]
Basicly finished adding verfied chunks to the final arrays (chunk data and hashes in separate arrays)

12 years agoIntroduced private methods for validation of hash and serial number (very basic check)
Roland Häder [Wed, 21 Mar 2012 22:01:40 +0000 (22:01 +0000)]
Introduced private methods for validation of hash and serial number (very basic check)