bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NetAddress class


From: Marc Boris Dürner
Subject: NetAddress class
Date: Mon, 29 Dec 2003 03:20:19 +0100 (MET)

Hi, 
For the implementation of classes for numeric IP addresses I am trying to
treat an IP 
address as a series of bytes. I have a base class NetAddress that has a
vector<uint8_t> 
as a member and is so usable for inet4, inet6, ipx etc... (and maybe mac
address as well) 
The derived class Inet4Address for instance has a validator that can
validate a string as 
input and put 4 bytes into the vector. It provides compatibility
getter/setter to in_addr. 
 
Is this a good idea? 
 
regards, 
Marc 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net






reply via email to

[Prev in Thread] Current Thread [Next in Thread]