-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Common Message Types For Extension Protocol #91
Comments
Currently struggling to come up with a good way to push certain messages down to nested protocols. The problem is that we handle the The nested protocols can't know about that message if our outer Currently, our impl for our
We can see that we pass no state information down to the nested protocol A new trait is proposed as being introduced:
So protocols that are expected to be nested could implement this trait, and it is up to the outer protocol to recognize that the inner protocol implements this trait (maybe for a specific message that the outer protocol handles), and call the appropriate methods. That being said, we could update our
This is fine, though as we said before, we would have to have a new impl for every message we think our inner protocol would like to see (which may be fine in that |
We need message containers for common extension messages, as well as some standard extension protocol container, which itself can contain multiple extension protocols (along with their messages):
InfoDictionary
(http://www.bittorrent.org/beps/bep_0009.html)The text was updated successfully, but these errors were encountered: