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.

相关推荐
半夏知半秋35 分钟前
rust学习-rust中的格式化打印
服务器·开发语言·后端·学习·rust
jerry-892 小时前
系统安全及应用
linux·运维·服务器
叩叮ING2 小时前
正则表达式中常见的贪婪词
java·服务器·正则表达式
AiFlutter2 小时前
在AlarmLinux系统中安装KeyDB
linux·运维·服务器
小徐同学14182 小时前
BGP边界网关协议(Border Gateway Protocol)路由聚合详解
运维·服务器·网络·网络协议·信息与通信·bgp
HaoHao_0103 小时前
AWS Outposts
大数据·服务器·数据库·aws·云服务器
HaoHao_0103 小时前
VMware 的 AWS
大数据·服务器·数据库·云计算·aws·云服务器
晚秋贰拾伍3 小时前
设计模式的艺术-外观模式
服务器·设计模式·外观模式
kyle~5 小时前
Linux--权限
linux·运维·服务器
谁在夜里看海.5 小时前
【Linux-网络】初识计算机网络 & Socket套接字 & TCP/UDP协议(包含Socket编程实战)
linux·运维·服务器·网络·计算机网络