Outdated egg!
This is an egg for CHICKEN 3, the unsupported old release. You're almost certainly looking for the CHICKEN 4 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
GeoIP
Chicken bindings for the GeoIP C API library, implementing most of the useful API procedures for accessing the freely available GeoIP Standard Country database.
The egg's documentation can presently be found at at:
http://code.call-cc.org/legacy-eggs/3/geoip.html
Examples
#;1> (use geoip) #;2> (geoip:database-edition) #\x1 #;3> (geoip:database-info) "GEO-106FREE 20070101 Build 1 Copyright (c) 2006 MaxMind LLC All Rights Reserved" #;4> (geoip:country-code-by-name "www.call-with-current-continuation.org") "DE" #;5> (geoip:country-code-by-addr "194.97.107.133") "DE" #;6> (geoip:country-code3-by-name "www.google.com") "USA" #;7> (geoip:country-name-by-name "www.bbc.co.uk") "United Kingdom"
Author
Requires
To build this extension, you will need a current version of the GeoIP C API library installed. The egg has most recently been built with version 1.4.1.
License
Copyright (c) 2006-2007 Arto Bendiken. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This product includes GeoLite data created by [[http://www.maxmind.com/|MaxMind]].
Version history
- 1.0.1
- Minor general cleanup of the egg.
- 1.0.0
- Initial release of the geoip egg.