• Denis Bilenko's avatar
    move c-ares wrappers from gevent.core to gevent.ares; make it optional in setup.py · 50a25535
    Denis Bilenko authored
    in gevent.ares module:
     - rename ares_channel to channel
     - rename ares_strerror() to ares.strerror()
     - remove _strerror()
     - do not use gevent_handle_error C function, use loop.handle_error
     - do not use loop and io watcher definitions (use Python calls instead of fast vtab calls)
    
    add python.pxd with a few common python functions
    do not include c-ares stuff, compile it separately
    add inet_ntop.c to gevent/ since it's not exported by c-ares and we use it
    
    make ares extension optional - retry setup.py command if it failed
    
    --HG--
    rename : gevent/cares.pxi => gevent/ares.pyx
    50a25535
inet_ntop.c 5.6 KB