.SOCK 文件扩展名
Unix Domain Socket File
| 开发者 | 不适用 |
| 受欢迎程度 |
4.0 | 2 票 |
什么是 SOCK 文件?
A SOCK file is a Unix domain socket file. It is used to communicate with another program, process, or server. Unix users typically create SOCK files using the socket command.
更多信息
Sockets are software components that allow programs to communicate with each other and servers. In Unix, users can create file-based socket endpoints saved as SOCK files. For example, those using uWSGI to host and communicate with a web server can create a SOCK file for that web server. Other programs that need to access the web server can then refer to the SOCK file.
Each SOCK file contains all the information needed to communicate with the program or server with which it is meant to be used. For example, it contains information about the protocol used for communication and the type of data that can be sent using the socket.
如何打开 SOCK 文件
SOCK files are not meant to be opened by users. To communicate with a socket using a SOCK file, use the nc -U or socat - UNIX-CONNECT: commands.