To Store ip-addresses in a database, you will
need a field type of Char(15).
This class let's you store the ipnumbers as
an integer ( between -2139062144 and 2139062143)
This class has two functions
1) decode ip->number
2) encode number->ip
Both functions return false for empty or wrong ip-numbers
While using this class you will spare typical 11 bytes
for every ipnumber you store.
Char(15) needs 15 Bytes
SIGNED INT(10) needs 4 Bytes