kuno / GeoIP

GeoIP binding for nodejs(>=0.10) and iojs
GNU Lesser General Public License v2.1
414 stars 129 forks source link

record_by_addr Asynchronous method? #4

Closed shripadk closed 13 years ago

shripadk commented 13 years ago

Is there any particular reason why the record_by_addr or any of the *_by_addr does not have an asynchrnous equivalent?

kuno commented 13 years ago

Because *_by_addr methods are looking for data from memory buffer. Async dose not make any sense in those case.

btw: geoip is my first node module, and it's design is pretty bad. And I am considering re-write it from sketch, although have not any schedule yet. And I like hear suggestions from people.

Would you like to offer some?