/** WebRTC signaling messages. * * @file * @author Steffen Vogel * @author Philipp Jungkamp * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC * @copyright 2023, OPAL-RT Germany GmbH * @license Apache 2.0 *********************************************************************************/ #pragma once #include #include #include #include #include #include #include namespace villas { namespace node { namespace webrtc { struct Peer { int id; std::string name; std::string remote; std::string userAgent; std::chrono::time_point created; Peer(json_t *j); json_t * toJson() const; }; struct RelayMessage { std::vector servers; RelayMessage(json_t *j); }; struct ControlMessage { int peerID; std::vector peers; ControlMessage(json_t *j); json_t * toJson() const; }; struct SignalingMessage { std::variant message; static SignalingMessage fromJson(json_t *j); json_t * toJson() const; std::string toString() const; }; } /* namespace webrtc */ } /* namespace node */ } /* namespace villas */