diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-28 01:57:42 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-28 01:57:42 +0000 |
commit | a742bbf8610aae58fc6d6ee2377c83395b3ca535 (patch) | |
tree | a8840f313844dc48225c3219f5e8e7f8aa0fabc6 /networkAddress.h | |
parent | added get Src/Dst Address @ plainPacket (diff) |
fixed PlainPacket get Src/Dst Address
added toString to NetworkAddress
Diffstat (limited to 'networkAddress.h')
-rw-r--r-- | networkAddress.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/networkAddress.h b/networkAddress.h index e4f5064..1192fb3 100644 --- a/networkAddress.h +++ b/networkAddress.h @@ -37,6 +37,7 @@ #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <string> enum network_address_type_t { @@ -57,6 +58,7 @@ public: void setNetworkAddress(const network_address_type_t type, const char * address ); void getNetworkAddress(const char *); network_address_type_t getNetworkAddressType(); + std::string toString() const; bool operator<(const NetworkAddress &s) const; NetworkAddress operator&(const NetworkAddress &s) const; NetworkAddress operator&=(const NetworkAddress &s); |