Skip to content
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

day08的Acceptor类和Connection类的事件处理逻辑放置问题 #78

Open
wqllyx opened this issue Mar 22, 2024 · 0 comments
Open

Comments

@wqllyx
Copy link

wqllyx commented Mar 22, 2024

唯一的不同在于,Acceptor类的处理事件函数(也就是新建连接功能)被放到了Server类中,具体原因在上一天的教程中已经详细说明。而Connection类则没有必要这么做,处理事件的逻辑应该由Connection类本身来完成。
这样做的目的是什么?

@wqllyx wqllyx changed the title day08的Acceptor类和Connection day08的Acceptor类和Connection类的事件处理逻辑放置问题 Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant