Skip to content

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

@wqllyx

Description

@wqllyx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions