# 3. IP address丶结构与数据转换

这里是好玩的地方，我们要开始谈代码了。

不过，我们一开始要讨论的代码会比较少！

耶！因为我想要先讲点 IP address（地址）与 port（端口），这样才会比较有谱；接着我们会讨论 socket API 如何储存与控制 IP address 和其它数据。


---

# 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://beej-zhcn.netdpi.net/ipaddress_struct.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.
