fix bug:round buffer write out of memory; add del event function; add send msg function;