improve socket project

improve socket project