# with their sockets
Here "their" refers to the "pillars and posts."
# sockets, pegs, and ropes
These are all items used secure the pillars and posts into place.