![]() |
|
|
|||
|
Re: get system prot using with process
On Jun 15, 5:59 pm, xzen <tianshizhil...@gmail.com> wrote:
> how can i get which port is used by which process? > same as netstat If you mean from your program, "strace -o trace netstat" would tell you it does and do that. In case you are lazy to run that command i reads files like /proc/net/tcp, /proc/net/udp etc. -- Rohit |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|