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.

相关推荐
白玉瑕20 小时前
服务器存储基础
运维·服务器
蚊子码农20 小时前
算法题解记录-208实现Trie前缀树
运维·服务器·算法
RisunJan20 小时前
Linux命令-iptables(配置防火墙规则的核心工具)
linux·运维·服务器
赵一舟21 小时前
linux下的磁盘清理
linux·运维·服务器
捷米研发三部21 小时前
EtherNet/IP转CAN协议转换网关实现罗克韦尔 PLC与压力传感器通讯在轮胎压力监测系统的应用案例
服务器·网络
白玉瑕21 小时前
服务器的构成
运维·服务器
石像鬼₧魂石21 小时前
80 端口(Web 服务)渗透测试完整总结(含踩坑 + 绕过 + 实战流程)
linux·运维·服务器·前端·网络·阿里云
米高梅狮子1 天前
11. Linux 防火墙管理
linux·运维·服务器
HABuo1 天前
【Linux进程(五)】进程地址空间深入剖析-->虚拟地址、物理地址、逻辑地址的区分
linux·运维·服务器·c语言·c++·后端·centos
开开心心_Every1 天前
安卓做菜APP:家常菜谱详细步骤无广简洁
服务器·前端·python·学习·edge·django·powerpoint