So I've verified that the socket seems to be getting created okay, but the onConnect event that is supposed to be linked to it via libevent is never getting called. Not sure how to debug it further as libevent is somewhat opaque.