UNIX domain sockets

A UNIX socket is an inter-process communication mechanism that allows bidirectional data exchange between processes running on the same machine.

IP sockets (especially TCP/IP sockets) are a mechanism allowing communication between processes over the network.

In some cases, you can use TCP/IP sockets to talk with processes running on the same computer (by using the loopback interface).

UNIX domain sockets know that they're executing on the same system, so they can avoid some checks and operations (like routing);

which makes them faster and lighter than IP sockets.

So if you plan to communicate with processes on the same host, this is a better option than IP sockets.

相关推荐
峥无4 小时前
Linux进程信号:从基础概念到内核底层原理
linux·运维·服务器·信号处理
广州灵眸科技有限公司4 小时前
瑞芯微RV1126B开发板(EASY-EAI-PI2) 开发(编译)方式说明
linux·服务器·单片机·嵌入式硬件·电脑
土星云SaturnCloud4 小时前
土星云AI边缘计算SE110S系列模型部署实战-YOLOv5
服务器·人工智能·yolo·docker·边缘计算
艾iYYY5 小时前
string 类的模拟实现
android·服务器·c语言·c++·算法
cjp5605 小时前
003.LINQ在WEB API中的应用
服务器·linq
周小码6 小时前
10分钟搭建私有Git服务器:Soft Serve实战
运维·服务器·git
知无不研6 小时前
对套接字的深入理解
linux·服务器·网络·c++·socket·网络套接字
ZStack开发者社区7 小时前
VMware替代:从POC通过到生产可用,差距在哪里
服务器·云计算·gpu算力
AI创界者7 小时前
运维进阶:如何使用 Medusa 进行企业内部服务器密码合规性审计?
运维·服务器
|_⊙9 小时前
Linux 信号
运维·服务器·前端