What does "cocksure" mean?

Cocksure: Quite certain. [Colloq.] I throught myself cocksure of the horse which he readily promised me. Pope.

Sources