What does "latching" mean?

Latching: A loop or eye formed on the head rope of a bonnet, by which it is attached to the foot of a sail; -- called also latch and lasket. [Usually in pl.]

Sources