Learn English – the generic term for “sender” and “receiver”

hypernymssingle-word-requests

Fruits is the generic term for apples and pears.

What is the generic term for sender and receiver in an abstract context?

In my special case I have users and servers who both can send and receive messages. I want to create a class to handle general logic for both of them.

Best Answer

From a native speaker:

Perhaps you are looking not for a single item that sends and receives, but one label that applies to either party. Use party to mean either end of the communication. You can introduce the connection between the label 'party' and both parties on the line by writing "When either party, the send or receiver, is active ..."