INADDR_ANY 详细信息 [英] INADDR_ANY details

查看:34
本文介绍了INADDR_ANY 详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将 INADDR_ANY 用于套接字会发生什么?它会接收来自与我的计算机相关的所有本地接口的所有流量还是通过我的接口传输的所有内容?使用HUB的网络非常重要!

what will happen if I use INADDR_ANY for a socket? Will it receive all traffic from all local interfaces that are related to my computer or everything that are transferred through my interfaces? It is very important for networks using HUB!

非常感谢

推荐答案

技术上两者都不是.阅读有关 bind (MSDN) 了解更多详情.

Technically neither. Read the documentation on bind (MSDN) for further details.

这篇关于INADDR_ANY 详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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