指定网卡/连接WINHTTP必须使用 [英] Specify which Network Card/Connection Winhttp Must Use

查看:453
本文介绍了指定网卡/连接WINHTTP必须使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中,利用WINHTTP Web请求的应用程序。是否有指定的网卡的WinHTTP必须利用其连接的方式?

I have an application in C# that utilizes Winhttp to make web requests. Is there a way to specify which network card WinHTTP must utilize for its connections?

推荐答案

有对WinHTTP的或没有公开可用的选项WinInet的做界面亲和。这似乎是在System.Net通过BindIPEndPointDelegate的请求的支持的ServicePoint

There is no publically available option for WinHTTP or WinInet to do Interface Affinity. It appears to be supported in System.Net via the BindIPEndPointDelegate on the Request's ServicePoint.

我好奇的方案是强制特定的接口,因为它指向一个问题是什么在堆栈的其余部分需要这样的话。

I am curious what the scenario is to force a specific interface since it points to a problem in the rest of the stack to need such a thing.

这篇关于指定网卡/连接WINHTTP必须使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆