nmathewson/libevent-book — pull request #21 by DarthGandalf (2014-05-05 19:32:21+00:00)
Title: Advise about bufferevent_socket_connect(bev, NULL, 0)

Previous time I tried to use libevent and played with it, I couldn't
understand how to get proper CONNECTED event after setting up the socket
myself. That made me not to use libevent...

But the solution is very simple.