diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2008-04-21 18:59:20 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2008-04-21 18:59:20 +0000 |
commit | c1b95643a8dc076b0d695fb9261e575ec6a5fa30 (patch) | |
tree | 28f41988017b9ffc889d559eed4cac0500bebe16 /examples | |
parent | be8a3714818ff6826a2722d4ed85ff0765ecaa3f (diff) | |
download | libgtop-c1b95643a8dc076b0d695fb9261e575ec6a5fa30.tar.gz |
Updated glibtop_get_proc_open_files API so that it also list IPv6 TCP sockets.
Patch by Mark McClelland <mark@ovcam.org>.
Closes #528175.
WTH do we not care about udp ?
Updated libtool versioning: API addition does not change the ABI, so only
increased revision. gnome-2.22 is 8.1.1 so trunk is now 8.2.1.
svn path=/trunk/; revision=2738
Diffstat (limited to 'examples')
-rw-r--r-- | examples/openfiles.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/openfiles.c b/examples/openfiles.c index 9811fe0e..aa6e1bee 100644 --- a/examples/openfiles.c +++ b/examples/openfiles.c @@ -37,9 +37,16 @@ static void show_open_files(pid_t pid) printf("socket %s:%d\n", files[i].info.sock.dest_host, files[i].info.sock.dest_port); break; + case GLIBTOP_FILE_TYPE_INET6SOCKET: + printf("socket [%s]:%d\n", files[i].info.sock.dest_host, files[i].info.sock.dest_port); + break; + case GLIBTOP_FILE_TYPE_LOCALSOCKET: printf("localsocket %s\n", files[i].info.localsock.name); break; + + default: + printf("unknown type\n"); } } |