Brookshear & Brylow's Computer Science: An Overview (12th ed.) states the following:
a process such as printing a document involves a constant two-way dialogue, known as handshaking, in which the computer and the peripheral device exchange information about the device’s status and coordinate their activities.
I'm more familiar with "handshaking" as the process of establishing a TCP connection, and "polling" as the technique of repeatedly checking the status of a hardware device.
This ScienceDirect summary complicates things further, mentioning two kinds of handshaking - hardware and software - neither of which has the meaning I'm familiar with.
So what is the exact relationship between "handshaking" and "polling"?