summary refs log tree commit diff
path: root/rtc/src/rtcPeerHandler.hpp
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:18:59 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:18:59 +1000
commit0cd9a46eea260c299db2e2983f7214ab8b119d29 (patch)
tree5fbb98e7adcfeab81594732089474afdde5893f9 /rtc/src/rtcPeerHandler.hpp
parentMerge branch 'master' into feat/captchaVerify (diff)
parentMerge remote-tracking branch 'Puyodead1/patch/prettier-config' into staging (diff)
downloadserver-0cd9a46eea260c299db2e2983f7214ab8b119d29.tar.xz
Merge remote-tracking branch 'upstream/staging' into feat/captchaVerify
Diffstat (limited to 'rtc/src/rtcPeerHandler.hpp')
-rw-r--r--rtc/src/rtcPeerHandler.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/rtc/src/rtcPeerHandler.hpp b/rtc/src/rtcPeerHandler.hpp
deleted file mode 100644

index 3ba32a83..00000000 --- a/rtc/src/rtcPeerHandler.hpp +++ /dev/null
@@ -1,32 +0,0 @@ -#include "libdatachannel/rtc.hpp" -#include <iostream> -#include <memory> -#include "nlohmann/json.hpp" -#include <array> - -#ifdef _WIN32 -#include <winsock2.h> -#else -#include <arpa/inet.h> -typedef int SOCKET; -#endif - -using json = nlohmann::json; - -#ifndef RTCPEERHANDLER -#define RTCPEERHANDLER -class rtcPeerHandler{ -public: - rtcPeerHandler(); - void initiateConnection(std::string peerIP, int peerPort); - - struct client - { - std::shared_ptr<rtc::PeerConnection> pc; - std::shared_ptr<rtc::DataChannel> dc; - }; - -private: - std::map<SOCKET, client> clients; -}; -#endif \ No newline at end of file