# 4.1 server

- [4.1.1 HTTP服务选项 new\_server\_httpserver\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/new_server_httpserver_options.md)
- [4.1.2 服务器端口选项 new\_server\_port\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/new_server_port_options.md)
- [4.1.3 服务器选项 new\_server\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/new_server_options.md)
- [4.1.4 服务器sockets server\_sockets](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_sockets.md)
- [4.1.5 服务器serverClient值 server\_serverClient\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_serverclient_value.md)
- [4.1.6 服务器路径值 server\_path\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_path_value.md)
- [4.1.7 服务器适配器值 server\_adapter\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_adapter_value.md)
- [4.1.8 服务器源值 server\_origins\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_origins_value.md)
- [4.1.9 服务器源函数 server\_origins\_fn](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_origins_fn.md)
- [4.1.10 服务器附加HTTP服务选项 server\_attach\_httpServer\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_attach_httpserver_options.md)
- [4.1.11 服务器附加端口选项 server\_attach\_port\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_attach_port_options.md)
- [4.1.12 服务器监听HTTP服务选项 server\_listen\_httpServer\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_listen_httpserver_options.md)
- [4.1.13 服务器监听端口选项 server\_listent\_port\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_listent_port_options.md)
- [4.1.14 服务器绑定引擎 server\_bind\_engine](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_bind_engine.md)
- [4.1.15 服务器连接socket server\_onconnection\_socket](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_onconnection_socket.md)
- [4.1.16 服务器命名空间(nsp) server\_of\_nsp](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_of_nsp.md)
- [4.1.17 服务器关闭回调 server\_close\_callback](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_close_callback.md)
- [4.1.18 服务器引擎生成socket ID server\_engine\_generateid](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_engine_generateid.md)


---

# 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://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server.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.
