Comments (4)
Ohw ... the old ways to implement the framework shall still be available ;), not breaking you code.
from python-p2p-network.
I was thinking about this. Maybe can implemented with middlewares like http frameworks. The middleware will intercepted the message or connection make something and pass to the next step. Can be implemented compression, encryption, encode and decoding objects (like blocks on blockchain).
from python-p2p-network.
Just like nodejs express framework or so. That sounds indeed interesting. I am now busy with experimenting with plugin framework. The plugins can interact on all the events that occur and are processed in the order that they have been added. It looks a bit like middleware solution.
from python-p2p-network.
I am now considering a design pattern for this according to http frameworks. Not yet found a solution other than the plugin I already implemented some how. However, with the plugins all plugins are executed. Within the HTTP frameworks if next() is not called, the process stops. That is also great for error handling.
The difference with HTTP framework is that also functionality to send specific message for instance. Discovery functionality for example. That can be implemented well using plugins. I am struggling how this could be done using the design pattern of the http framework.
Do you have any suggestions?
from python-p2p-network.
Related Issues (20)
- I have question about the "nodeconnection.py" HOT 1
- I have link question between "node.py" and "nodeconnection.py" HOT 2
- Pip3 version is out of date and unstable HOT 2
- how HOT 1
- how to HOT 1
- how to use send_to_node api? HOT 2
- Import "p2pnetwork.node" could not be resolved HOT 1
- Connect to a node already connected to HOT 3
- Bug in connect_with_node function in node.py HOT 2
- implementing compression to transfer large files over socket. HOT 11
- Change to Tox testing suite HOT 3
- Length protocol instead of EOT HOT 13
- Issue: unit test test_node_max_connections failed HOT 2
- Info about node discovery HOT 3
- OS Error when stopping nodes HOT 1
- Non UTF-8 messages will throw exception
- Crash if node id malformed HOT 1
- Misspelled debug messages
- Hello, how to implement the broadcast and discovery of nodes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-p2p-network.