Example using protobuf to transfer data between two endpoints