# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ryukiedev.gitbook.io/wiki/zhi-bo-ji-shu/socket-little-endian-big-endian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
