Unix Socket ported to Windows platform not so long ago but is there any method to get process id of connected process on windows same way you do using getsockopt() on linux and darwin ?
Asked
Active
Viewed 109 times
0
-
Does this answer your question? [How do I get PID from socket port on Windows?](https://stackoverflow.com/questions/58739009/how-do-i-get-pid-from-socket-port-on-windows) – CodeCaster Sep 14 '22 at 11:16
-
Unix sockets do not expose a port to connect, it is a file like pipe. – mfbarnable Sep 14 '22 at 11:35
-
1Ah sorry, so you're using AF_UNIX sockets on Windows. Perhaps [query who has an open file handle](https://stackoverflow.com/questions/47476625/windows-files-locked-by-process)? – CodeCaster Sep 14 '22 at 11:37
-
This is a nice idea, I will try it and update here. Thanks. – mfbarnable Sep 14 '22 at 12:23