Working on secure socket class