From: Doug M. <do...@hy...> - 2010-06-09 05:02:42
|
Sigar has an API to get the PID of a listening port, and an API to get connection/socket stats for a particular port.. but I believe what you're looking for is a todo, from sigar.h: typedef struct { sigar_uint64_t total; /* XXX - which are files, sockets, etc. */ } sigar_proc_fd_t; Or, are you just looking for stats on port 7010? |