divide socket thread files