> For the complete documentation index, see [llms.txt](https://ryukiedev.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryukiedev.gitbook.io/wiki/zhi-bo-ji-shu/socket-little-endian-big-endian.md).

# Socket-Little-Endian-Big-Endian

socket编程为什么需要htons(), ntohl(), ntohs()，htons() 函数 <https://blog.csdn.net/myyllove/article/details/83380209> 关于Big Endian 和 Little Endian <https://blog.csdn.net/sunshine1314/article/details/2309655> 浅谈C语言中的联合体 <https://www.cnblogs.com/dolphin0520/archive/2011/10/03/2198493.html> 判断处理器是Big\_endian的还是Little\_endian的 <https://www.cnblogs.com/codingmengmeng/p/7845958.html>
