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

tcp::Client与tcp::Connection可以使用一个统一的类吗 #295

Open
Z-eddy opened this issue Jan 15, 2023 · 0 comments
Open

tcp::Client与tcp::Connection可以使用一个统一的类吗 #295

Z-eddy opened this issue Jan 15, 2023 · 0 comments
Labels

Comments

@Z-eddy
Copy link

Z-eddy commented Jan 15, 2023

tcp::Client与tcp::Connection的很多接口都比较类似,是否考虑统一使用一个类(或一个抽象基类)来进行表达(因为以前使用的Qt的tcp库,有用map<string,QTcpSocket>的设计,go项目也用了map[string]net.Conn这样的设计),这样可以在建立client和server接收的时候,都使用同一个类(例如tcp::Socket这样的)进行操作

@idealvin idealvin added the idea label Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants