VC驿站

 找回密码
 加入驿站

QQ登录

只需一步,快速开始

搜索
查看: 113|回复: 0

Winhttp如何发送IPV6的HTTP请求

[复制链接]
85_avatar_middle
最佳答案
0 
在线会员 发表于 2020-7-17 11:40:49 | 显示全部楼层 |阅读模式

从网上只找到关于IPV6的一个设置选项:https://docs.microsoft.com/en-us/windows/win32/winhttp/option-flags

WINHTTP_OPTION_IPV6_FAST_FALLBACK

Enables IPv6 fast fallback (Happier Eyeballs) for the connection. This behavior is similar to the Happy Eyeballs behavior described in RFC 6555 for improving connection times on networks where IPv6 is unreliable.

If both IPv6 and IPv4 addresses are resolved for a given host, WinHttp will begin by connecting to the first resolved IPv6 address with a short (300ms) timeout.
Should that connection fail, WinHttp will attempt to connect to the first resolved IPv4 address with the standard timeout.
Should the second connection fail, WinHttp will retry the first resolved IPv6 address with the standard timeout.
Should the third connection fail, WinHttp will revert to the default behavior for any remaining addresses, attempting a connection to each one with the standard timeout until a connection is made or no addresses remain.

假设服务器支持IPV6,我该如何设置选项呢?




上一篇:MFC中如何让IP地址控件实现随着窗口的放大缩小而等比例的放大缩小呢?
下一篇:联机的概念
您需要登录后才可以回帖 登录 | 加入驿站 qq_login

本版积分规则

×【发帖 友情提示】
1、请回复有意义的内容,请勿恶意灌水;
2、纯数字、字母、表情等无意义的内容系统将自动删除;
3、若正常回复后帖子被自动删除,为系统误删的情况,请重新回复其他正常内容或等待管理员审核通过后会自动发布;
4、感谢您对VC驿站一如既往的支持,谢谢合作!

关闭

站长提醒上一条 /2 下一条

QQ|小黑屋|手机版|VC驿站 ( 辽ICP备09019393号 )|网站地图wx_jqr

GMT+8, 2020-8-6 05:49

Powered by CcTry.CoM

© 2009-2020 cctry.com

快速回复 返回顶部 返回列表