I tried to change it to const &, but the compile complains that I have called non-const MpingSocket methods.