summaryrefslogtreecommitdiff
path: root/src/GodotDataChannelObserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GodotDataChannelObserver.cpp')
-rw-r--r--src/GodotDataChannelObserver.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/GodotDataChannelObserver.cpp b/src/GodotDataChannelObserver.cpp
deleted file mode 100644
index 7a6cf96..0000000
--- a/src/GodotDataChannelObserver.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "WebRTCLibPeer.hpp"
-
-using namespace godot_webrtc;
-
-WebRTCLibPeer::GodotDCO::GodotDCO(WebRTCLibPeer *parent) {
- this->parent = parent;
-}
-
-void WebRTCLibPeer::GodotDCO::OnMessage(const webrtc::DataBuffer &buffer) {
- const uint8_t *data = buffer.data.data<uint8_t>();
- uint8_t *memory_controlled_buffer = new uint8_t[buffer.data.size()];
-
- std::copy(data, data + buffer.data.size(), memory_controlled_buffer);
- parent->queue_packet(memory_controlled_buffer, buffer.data.size());
-};
-
-void WebRTCLibPeer::GodotDCO::OnStateChange(){};
-
-void WebRTCLibPeer::GodotDCO::OnBufferedAmountChange(uint64_t previous_amount){};