on_stream_writable 这个函数会在什么情况下被触发呢? #449
Unanswered
bjbeshop
asked this question in
Q&A (问题和回答)
Replies: 1 comment
-
on_stream_writable函数,是在QUIC协议栈认为此stream允许上层写入数据时触发(也就是拥塞窗口和流控窗口均有余量,且上层应用又注册了wantwrite);若您是想要简单模拟发送文件,是可以在此回调中执行发送操作。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我们想试一下使用TQUIC发送视频文件,基于之前提供的 sample code 文件进行的修改,把文件发送的程序写到了on_stream_writable 这个函数里,但是运行之后,发现并没有被触发,是不是文件发送的程序应该写到 client_on_conn_established 这个函数里?那on_stream_writable 这个函数有什么用呢?
Beta Was this translation helpful? Give feedback.
All reactions