A man visiting a friend in the hospital.
A man in a hospital receives a visiting friend.
The subject is visiting a friend and the object is receiving a visiting friend.
If you are visiting a friend, from your friend's perspective they are receiving a visiting friend.
VISITING SOMEONE REQUIRES SOMEONE RECEIVES HIM