similar but not the same, socketMatch returns bool, I wanted to return a pointer to the object itself.