Socket vs Spigot
Socket is female, pipe goes in it. Spigot is male. Note that pipe is always spigot - ID is never used becuase IDs can be different for different pipe types - while fittings are universal. Fittings can be socket or spigot.
https://www.youtube.com/watch?v=YMcHkmsY-YI
Note that hub and socket is the same thing.