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

关于Acceptor的一个疑问 #62

Open
Anu-orange opened this issue Jul 12, 2023 · 1 comment
Open

关于Acceptor的一个疑问 #62

Anu-orange opened this issue Jul 12, 2023 · 1 comment

Comments

@Anu-orange
Copy link

在day07开始存在了一个Acceptor,然后介绍了Acceptor的三个特点,其中第一个就是类存在于EventLoop类中,这句话是不是反了,EvenetLoop这个类里面哪来的Acceptor类对象成员呢,应该是Acceptor类中存在EvenetLoop类对象或者EventLoop存在于Acceptor中吧

@wannan123
Copy link

其实我感觉意思不是“类”存在于哪个“类”,而是Acceptor抽象出来的事件存在于Eventloop中,因为在Acceptor中创建了Channel,而这个channel是绑定在Eventloop中,可以这么理解

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

2 participants