utility for exchanging and logging messages between two machines