|
@@ -23,10 +23,6 @@
|
|
#include <memory>
|
|
#include <memory>
|
|
#include <thread>
|
|
#include <thread>
|
|
|
|
|
|
-#ifdef _WIN32
|
|
|
|
-#include <winsock2.h>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
using namespace rtc;
|
|
using namespace rtc;
|
|
using namespace std;
|
|
using namespace std;
|
|
|
|
|
|
@@ -35,12 +31,6 @@ template <class T> weak_ptr<T> make_weak_ptr(shared_ptr<T> ptr) { return ptr; }
|
|
int main(int argc, char **argv) {
|
|
int main(int argc, char **argv) {
|
|
InitLogger(LogLevel::Debug);
|
|
InitLogger(LogLevel::Debug);
|
|
|
|
|
|
-#ifdef _WIN32
|
|
|
|
- WSADATA wsaData;
|
|
|
|
- if (WSAStartup(MAKEWORD(2, 2), &wsaData))
|
|
|
|
- throw std::runtime_error("WSAStartup failed, error=" + std::to_string(WSAGetLastError()));
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
Configuration config;
|
|
Configuration config;
|
|
// config.iceServers.emplace_back("stun:stun.l.google.com:19302");
|
|
// config.iceServers.emplace_back("stun:stun.l.google.com:19302");
|
|
// config.iceServers.emplace_back(IceServer("TURN_SERVER_URL", "PORT", "USERNAME", "PASSWORD",
|
|
// config.iceServers.emplace_back(IceServer("TURN_SERVER_URL", "PORT", "USERNAME", "PASSWORD",
|
|
@@ -137,10 +127,5 @@ int main(int argc, char **argv) {
|
|
} else {
|
|
} else {
|
|
cout << "Failure" << endl;
|
|
cout << "Failure" << endl;
|
|
}
|
|
}
|
|
-
|
|
|
|
-#ifdef _WIN32
|
|
|
|
- WSACleanup();
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
- return success ? 0 : 1;
|
|
|
|
|
|
+ return success ? 0 : 1;
|
|
}
|
|
}
|