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.