mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I9850950db8bd84f0904ea1a413151887f52098cf
24 lines
667 B
C++
24 lines
667 B
C++
#include "core/internal/webrtc_endpoint_channel.h"
|
|
|
|
namespace location {
|
|
namespace nearby {
|
|
namespace connections {
|
|
|
|
WebRtcEndpointChannel::WebRtcEndpointChannel(
|
|
const std::string& channel_name, mediums::WebRtcSocketWrapper socket)
|
|
: BaseEndpointChannel(channel_name, &socket.GetInputStream(),
|
|
&socket.GetOutputStream()),
|
|
webrtc_socket_(std::move(socket)) {}
|
|
|
|
proto::connections::Medium WebRtcEndpointChannel::GetMedium() const {
|
|
return proto::connections::Medium::WEB_RTC;
|
|
}
|
|
|
|
void WebRtcEndpointChannel::CloseImpl() {
|
|
webrtc_socket_.Close();
|
|
}
|
|
|
|
} // namespace connections
|
|
} // namespace nearby
|
|
} // namespace location
|