It works as expected with ipv4, but I can't get it to work with ipv6. I searched around a bit and I'm getting mixed answers about if this is possible.
The libevent 2.0.21 source seems to suggest the socket is bound with AF_INET but some people are claiming it can be done, but don't provide any useful info beyond saying: "Libevent supports ipv6."