* Use std::map instead of hand-written hashtable

* Use handwritten inode-to-process-mapping instead of the
  one taken from netstat
* Use a #define for using assertions
This commit is contained in:
Arnout Engelen
2005-01-15 12:28:35 +00:00
parent 2eae80fd74
commit 4a3a21a5df
12 changed files with 83 additions and 186 deletions

View File

@@ -32,10 +32,10 @@
#define DEBUG 0
// if '0', do extra checks and
// if '1', do extra checks and
// assertions. good for finding bugs
// at an early stage of development.
// for production, should be 1.
// for production, should be 0.
#define ROBUST 1
// 2 times: 32 characters, 7 ':''s, a ':12345'.
@@ -93,7 +93,7 @@ public:
int result = inet_pton (AF_INET6, address, &addr6);
if (DEBUG)
if (ROBUST)
assert (result > 0);
sa_family = AF_INET6;
}