Copyright © 2014 by mTLD Top Level Domain Limited. All rights reserved.
Portions copyright © 2008 by Argo Interactive Limited.
Portions copyright © 2008 by Nokia Inc.
Portions copyright © 2008 by Telecom Italia Mobile S.p.A.
Portions copyright © 2008 by Volantis Systems Limited.
Portions copyright © 2002-2008 by Andreas Staeding.
Portions copyright © 2008 by Zandan.
dotMobi
This class is responsible for loading the data file and walking the IPV4 Radix Tries to find the properties for a given User-Agent.
Convert the IP address string to long. www.norbauer.com/rails-consulting/notes/storing-ip-addresses-as-integers.html
ip
IP address as a string
return
IP address as a long
Load carrier data file.
file_path
carrier data file
Selects a value for a given IPv4 address, traversing tree and choosing most specific value available for a given address.
key
::IPv4 address to look up in integer or string form
return
Value at most specific IPv4 network in a tree for a given IPv4
address