简述为UDP套接字分配端口号的两种方法。
(1)创建一个UDP套接字时,传输层自动地为该套接字分配一个端口号(通常从1024〜65535分配一个端口号),该端口号当前未被该主机中任何其他UDP套接字使用; (2)在创建一个UDP套接字后,通过调用BIND()函数为该套接字绑定一个特定的端口号。
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/236202.html
上一篇:Take a Dictionary with YouIf you don't use a dictionary, what should you do instead? The first thing you can do is trying to guess what the word means. Often the(41)_____(surround) context gives a very clear idea of the meaning of the wor
下一篇:公安机关对醉酒的人进行强制约束的行为属于何种性质的行为?()