summaryrefslogtreecommitdiff
path: root/src/WebRTCPeer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebRTCPeer.cpp')
-rw-r--r--src/WebRTCPeer.cpp77
1 files changed, 0 insertions, 77 deletions
diff --git a/src/WebRTCPeer.cpp b/src/WebRTCPeer.cpp
deleted file mode 100644
index f7572ad..0000000
--- a/src/WebRTCPeer.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-#include "WebRTCPeer.hpp"
-
-using namespace godot_webrtc;
-
-void WebRTCPeer::set_write_mode(godot_int mode) {
-
-}
-
-godot_int WebRTCPeer::get_write_mode() const {
- return 0;
-}
-
-bool WebRTCPeer::was_string_packet() const {
- return false;
-}
-
-godot_int WebRTCPeer::get_connection_state() const {
- return 0;
-}
-
-godot_error WebRTCPeer::create_offer() {
- return GODOT_FAILED;
-}
-
-godot_error WebRTCPeer::set_remote_description(const char *type, const char *sdp) {
- return GODOT_FAILED;
-}
-
-godot_error WebRTCPeer::set_local_description(const char *type, const char *sdp) {
- return GODOT_FAILED;
-}
-
-godot_error WebRTCPeer::add_ice_candidate(const char *sdpMidName, int sdpMlineIndexName, const char *sdpName) {
- return GODOT_FAILED;
-}
-
-godot_error WebRTCPeer::poll() {
- return GODOT_FAILED;
-}
-
-godot_error WebRTCPeer::get_packet(const uint8_t **r_buffer, int &r_len) {
- printf("Get packet");
- r_len = 0;
- return GODOT_OK;
-}
-
-godot_error WebRTCPeer::put_packet(const uint8_t *p_buffer, int p_len) {
- printf("Put packet");
- return GODOT_OK;
-}
-
-godot_int WebRTCPeer::get_available_packet_count() const {
- printf("Get packet count");
- return 2;
-}
-
-godot_int WebRTCPeer::get_max_packet_size() const {
- printf("Get max packet size");
- return 1024;
-}
-
-void WebRTCPeer::_register_methods() { }
-
-void WebRTCPeer::_init() {
- printf("Binding PacketPeer interface");
- register_interface(&interface);
-}
-
-WebRTCPeer::WebRTCPeer() {
-}
-
-WebRTCPeer::~WebRTCPeer() {
- if (_owner) {
- printf("Unbinding PacketPeer interface");
- register_interface(NULL);
- }
-}