Is there a convenient way (e.g. a readily-available command or a program that I can write using standard system calls) to list socket options (e.g. TCP_NODELAY) of an open TCP socket of some running process on a Linux system?
I have not personally done this myself, but it looks like knetstat may be able to help you. It is not readily-available, but unfortunately I am not sure there is such a way.