diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2022-08-13 02:00:50 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-13 22:00:55 +0200 |
commit | 5e86d7ab9c5200d794c3adb2b422d20a2aefd2ce (patch) | |
tree | 0a4b23ee96862077b21dea20cf71205709e15f7c /rtc/src/rtcPeerHandler.hpp | |
parent | try to update build script (diff) | |
download | server-5e86d7ab9c5200d794c3adb2b422d20a2aefd2ce.tar.xz |
restructure to single project
Diffstat (limited to 'rtc/src/rtcPeerHandler.hpp')
-rw-r--r-- | rtc/src/rtcPeerHandler.hpp | 32 |
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 |