开发者

specifying which adapter wininet will use

开发者 https://www.devze.com 2023-03-28 06:29 出处:网络
I have a Visual Studio 2008 C++ application that uses WinInet to retrieve fi开发者_如何学Goles from HTTP and FTP servers. Is there a way I can specify which network adapter WinInet will use to connect

I have a Visual Studio 2008 C++ application that uses WinInet to retrieve fi开发者_如何学Goles from HTTP and FTP servers. Is there a way I can specify which network adapter WinInet will use to connect to the remote servers or specify which IP address will originate the connection?


I think the short answer is that you cannot. WinInet doesn't expose most of the lower-level (Winsock) functionality that you'd need to accomplish this.

I know that Winsock does allow more control over the network interfaces/adapters, but then you'd have to decide on a way to make the HTTP/FTP requests beyond that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号