TCP、UDP よりもイメージのつきにくい Unixドメインソケットについて簡単にまとめる。 TCP、UDP などの接続先が同一ホスト内のプロセスと通信を行うイメージ。外部の通信ではなく、カーネル内でのプロセス間通信。外部の通信よりも高速。WebサーバーとNginx ...
Unix domain sockets are always better than using a loopback TCP socket. For performance and mainly the videoplayback proxy, using a unix socket that can be exposed to the host machine (or a reverse ...
これまではUnix系OSの話でした。 Windowsでは、ストリーム型のUnixドメインソケットに近い使い方ができる仕組みとして、名前付きパイプというものがあります。 なお、名前付きパイプという概念はUnixにもありますが、ややこしいことにWindowsとは意味が違う ...
Like socat TCP-LISTEN:2375,fork UNIX-CONNECT:/var/tmp/docker.sock, except this is literally the only thing this program does. Purposefully simplistic in ...
まとめ Unixソケットは「同じコンピュータ内に限った近道の通信方法」です。 TCPのように相手を探して電話をかける手間がなく、同じ部屋で直接会話するようにシンプルに情報をやり取りできます。 Webサーバーやデータベース接続だけでなく、Dockerの内部でも重要な役割を担っています。
Abstract: This paper presents a Rust-based Session Types library to secure the type-safety for software that performs synchronous concurrent communication based on TCP sockets and UNIX domain sockets.
Sockets provide an interface into the kernel’s networking protocols by allowing programmers to create a communication endpoint in the form of a file descriptor, and by binding a name to the file ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する