Made the socket class into a plugin
Fix warning