How to find out that data is buffered between two clients connected through a unix domain socket in Linux

I have a producer and client connecting using Unix Domain Sockets. The netstat -nap command shows the amount of buffered data between two processes for a TCP / IP socket, but not for a Unix domain socket

How do I know the send and receiver buffer sizes for a Unix Domain Socket from outside the code?

+4
source share
1 answer

netstat does not have POSIX compliance. This means that you cannot get identical information that runs netstat for different operating systems. The tcp / ip buffer settings are usually the system default settings.

You need to enter both windows in order to run netstat in order to get tcp internal information for sockets. I'm sure you already know this, but I'm trying to be clear. Information about the tcp system is located in completely different places from Linux to another OS, say Solaris.

What is the output of uname -a on a UNIX window?

0
source

Source: https://habr.com/ru/post/1413001/


All Articles