build up the project and code of socket class usage