还有ntohs()和ntohl()相同呢? [英] ntohs() and ntohl() equivalent?
本文介绍了还有ntohs()和ntohl()相同呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有网主办的C#转换函数?谷歌搜索,并没有找到太多。 :P
Are there net to host conversion functions in C#? Googling and not finding much. :P
推荐答案
的 IPAddress.HostToNetworkOrder
和的 IPAddress.NetworkToHostOrder
?
每个方法有16位,32位和64位的整数重载。
Each method has overloads for 16, 32 and 64 bit integers.
这篇关于还有ntohs()和ntohl()相同呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文