refactor,add descriptor,remove socket structure