A socket wrench is a type of spanner that uses a closed socket format, rather than a typical open wrench/spanner to turn a fastener, typically in the form of a nut or bolt.
Socket set with ratchet (above), four hex sockets and a universal joint
Torx socket
"6 point" hexagonal socket
Splined socket
A wrench or spanner is a tool used to provide grip and mechanical advantage in applying torque to turn objects—usually rotary fasteners, such as nuts and bolts—or keep them from turning.
A set of metric spanners or wrenches, open at one end and box/ring at the other. These are commonly known as “combination” spanners.
Wheel-lock gun of Sigismund III Vasa: The original spanner had a square hole for turning the shaft (r.) of the wheel, which tensioned the mainspring. See also § External links.
Image: Bremsleitungsschluessel
Image: Craftsman Saltus wrenches