boost.asio 是否可以使用链接本地地址绑定到特定的网卡?
由于 asio 文档并不真正名副其实,我不得不问这个问题。帮助我 Stackoverflow,你是我唯一的希望;)
我们在这里谈论 IPv6。我想告诉 asio 使用特定的接口,例如 eth0,但没有全局 IP 地址,因为我只链接本地接口。 我想要一些类似于 ping6 -I 的东西。 这可以用 asio 实现吗?还是我必须使用 Berkeley Sockets?
预先感谢您并致以最诚挚的问候。
as the asio documentation does not really live up to its name I have to ask this question. Help me Stackoverflow, you are my only hope ;)
We are talking in IPv6 here. I would like to tell asio to use a specific interface, like eth0, but without a global ip address, since I have only link local ones.
I would like to have something simliar to ping6 -I .
Is this possible with asio or do I have to use Berkeley Sockets for this?
Thank you in advance and best regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 IP 地址后面附加接口名称,并使用
取自此答案的
%
分隔符。append the interface name after the IP address with a
%
delimitertaken from this answer.