tquic在回调函数外创建流的问题 #431
Answered
by
iyangsj
LapseLove
asked this question in
Q&A (问题和回答)
-
我在c示例simple_client中另外添加了一个ev_io_watcher监听stdin输入并且把其设置成非阻塞,想做到在stdin有数据时就接收然后使用quic_stream_uni_new创建一个新的流把数据发出去。 |
Beta Was this translation helpful? Give feedback.
Answered by
iyangsj
Nov 21, 2024
Replies: 1 comment 3 replies
-
检查下quic_stream_uni_new()返回值,是否返回了错误
可以,但需要额外手工调用 简单的做法是仅在回调函数中执行这类函数 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
LapseLove
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
检查下quic_stream_uni_new()返回值,是否返回了错误
可以,但需要额外手工调用
quic_endpoint_process_connections()
简单的做法是仅在回调函数中执行这类函数