关于创建连接失败的问题 #448
Unanswered
defense226
asked this question in
Q&A (问题和回答)
关于创建连接失败的问题
#448
Replies: 0 comments
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.
-
我在本机上测试通信时,使用下列代码建立连接,其中local_addr和server_addr都为不同端口本机地址,quic_endpoint初始化代码也在下方,为什么建立连接一直失败并返回-109呢?我该从哪获取到具体的错误日志呢
struct quic_transport_methods_t handler_methods;
struct quic_packet_send_methods_t sender_methods;
setupQuicHandlers(handler_methods, sender_methods);
quic_endpoint = quic_endpoint_new(quicConfig, isServer, &handler_methods, this, &sender_methods, this);
int status = quic_endpoint_connect(quic_endpoint, (struct sockaddr *)&local_addr, local_addr_len,
(struct sockaddr *)&server_addr, server_addrLen, nullptr, nullptr, 0, nullptr, 0, quic_config, &conn_index);
Beta Was this translation helpful? Give feedback.
All reactions