> For the complete documentation index, see [llms.txt](https://xiaoxiami.gitbook.io/linux-server/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xiaoxiami.gitbook.io/linux-server/socket.md).

# Socket

Socket 可以看成是用户进程与内核网络协议栈的编程接口。

socket不仅可以用于本机的进程通信，还可以用于网络上不同主机的进程间通信。
