COLREGs and SOLAS: the two pillars of global maritime safety

Imagine sailing through a busy shipping lane at night: a cargo vessel bearing down from starboard, a fishing boat crossing ahead, fog rolling in. What do you do? Who gives way? What signals should you sound? What safety equipment must you have on board?