Change return type of socket address from a SmartPointer of a new copy to a const reference to member variable.