summary refs log tree commit diff
path: root/src/rtcPeerHandler.hpp
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:33:42 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:33:42 +0200
commita92c6637cea0ce595c712c3d445b57a1184e833e (patch)
treeb4aa50b4091617195025e2ed36406ae61e8fe3b9 /src/rtcPeerHandler.hpp
parent:sparkles: util (diff)
downloadserver-a92c6637cea0ce595c712c3d445b57a1184e833e.tar.xz
:sparkles: rtc
Diffstat (limited to 'src/rtcPeerHandler.hpp')
-rw-r--r--src/rtcPeerHandler.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/rtcPeerHandler.hpp b/src/rtcPeerHandler.hpp
deleted file mode 100644

index 3ba32a83..00000000 --- a/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