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

怎么保证send数据成功了呢? #49

Open
qht1003077897 opened this issue Apr 23, 2020 · 1 comment
Open

怎么保证send数据成功了呢? #49

qht1003077897 opened this issue Apr 23, 2020 · 1 comment

Comments

@qht1003077897
Copy link

我看send函数里面有个回调函数,但是没有返回参数,因此只能知道send发送完成了,但是不能知道send有没有发送到缓冲区?

@IronsDu
Copy link
Owner

IronsDu commented Apr 25, 2020

我觉得发送完成(投递到内核)才是需要关注的。仅仅是放到缓冲区没太大意义(当然brynet也并没有设计发送缓冲区,只有发送队列)。

另外,需要注意,发送完成也不代表一定发送给了对方。

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