Attaching with multiple sockets in C++

I want to attach a skeletal mesh to my player using two sockets on the skeletal mesh and two sockets on the player. I can connect easily with one but I am not sure how to do it with two.