简体   繁体   English

boost ASIO套接字会自动使用多个网络接口吗? 有效率的? 如果没有,怎么办?

[英]Do boost ASIO sockets automatically use multiple network interfaces? Efficiently? If not, how?

I'm trying to determine if boost client & server endpoints will automatically use all available network interfaces. 我试图确定boost客户端和服务器端点是否将自动使用所有可用的网络接口。

I've read the two links that I've found on the subject, and it seems that it's possible , but which interface is chosen, if so? 我已经阅读了在该主题上找到的两个链接 ,并且似乎有可能 ,但是如果选择了哪个接口,那么呢?

Can a server endpoint accept connections on all interfaces? 服务器端点可以接受所有接口上的连接吗? Will a client endpoint automatically seek the best connection, for example, where one internet connection connects to a local region with better connectivity to geographically nearer nodes available through one device yet to the internet at large with better connectivity to the rest of the world through another device? 客户端端点是否会自动寻求最佳连接,例如,一个Internet连接连接到本地区域,并且通过一个设备可以更好地连接到地理位置较近的节点,而可以通过另一设备连接到整个Internet则可以更好地连接到世界其他地方设备?

If they do not automatically use all available interfaces, how can they be made to do so? 如果他们没有自动使用所有可用的接口,该如何使用它们呢?

Can a server endpoint accept connections on all interfaces? 服务器端点可以接受所有接口上的连接吗?

Yes. 是。

Will a client endpoint automatically seek the best connection, for example, where one internet connection connects to a local region with better connectivity to geographically nearer nodes available through one device yet to the internet at large with better connectivity to the rest of the world through another device? 客户端端点是否会自动寻求最佳连接,例如,一个Internet连接连接到本地区域,并且通过一个设备可以更好地连接到地理位置较近的节点,而可以通过另一设备连接到整个Internet则可以更好地连接到世界其他地方设备?

The client will choose the route that has the lowest cost as determined by its IP routing tables. 客户端将选择由其IP路由表确定的成本最低的路由。 Each intermediate router will do the same. 每个中间路由器将执行相同的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM