using libevent, mmorpg gateway