Unix Domain Sockets and HTTP Client Basics
1. Unix Domain Sockets
Unix domain sockets are a file - based communication method for processes running on the same node. For example, a local database server and client can communicate through a Unix domain socket. Since they rely on the filesystem for addressing, filesystem ownership and permissions can be used to control access.
Go supports three types of Unix domain sockets: unix , unixgram , and unixpacket . Code written for a stream - based TCP network can work with little modification over the unix domain socket (for local process communication only). Similarly, code for a UDP network can be used with the unixgram domain socket.
Unix Socket与HTTP客户端基础
超级会员免费看
订阅专栏 解锁全文
2319

被折叠的 条评论
为什么被折叠?



