-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Preliminary network class cleanup #4490
Preliminary network class cleanup #4490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. It makes significant inroads on the thousand annoyances with the networking code.
@@ -25,6 +25,28 @@ class tcp_message_item final | |||
nano::account node_id; | |||
std::shared_ptr<nano::transport::socket> socket; | |||
}; | |||
|
|||
class tcp_message_manager final |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could probably be in its own file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to spend to much time on reworking this manager, since I plan to move this functionality to a message_processor class anyway.
In preparation for future network improvements, this PR reorganizes
network
class slightly, makes dedicated threads for long lived tasks and removes unused code.