in reply to Re^2: Detect socket
in thread Detect socket

There might be, but I don't know it since it's not something one needs to do. Sounds like an XY problem.