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

udpsession read 优化 #928

Open
injuryzy opened this issue Aug 3, 2023 · 0 comments
Open

udpsession read 优化 #928

injuryzy opened this issue Aug 3, 2023 · 0 comments

Comments

@injuryzy
Copy link

injuryzy commented Aug 3, 2023

我已经看了所有的issus。并没有发现我看见的问题,或许是我看漏了 ,
func (s *UDPSession) Read(b []byte) (n int, err error)
这个函数如果读取完毕没有像传统的方式返回一个人io.EOF ,这使得我不能够使用ioutil等方法,我觉的如果返回io.EOF ,我们可以更好地获取数据,搭配别的包,或许这里面有你的设计思想,如果你的想法更好,你可以分享一下给我吗?谢谢

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