resolve server address
enable -Weffc++