The Apple device contains the socket, and the cable or docking station has the plug. In 2012, the original 30-pin analog+digital interface was replaced with the 8-pin all-digital Lightning connector.