p2p Network Node implemented

This commit is contained in:
Luis Fernando Molina committed 2021-11-04 12:03:58 +01:00
1 parent 1bcd24e442
commit 80f7ffaa8e
7 files changed
+95 -4

No files matched your search

@@ -0,0 +1,29 @@
exports.newNetworkModulesP2PNetworkNode = function newNetworkModulesP2PNetworkNode() {
/*
This module represents the P2P Network Node.
*/
let thisObject = {
node: undefined,
userPofile: undefined,
/* Framework Functions */
initialize: initialize,
finalize: finalize
}
return thisObject
function finalize() {
thisObject.node = undefined
thisObject.userPofile = undefined
}
async function initialize(node, userPofile) {
/*
We will setup here the maps and arryas we will need to operate within the P2P Network.
*/
thisObject.node = node
thisObject.userPofile = userPofile
}
}