add socket libevent