|
@@ -33,11 +33,6 @@ using std::shared_ptr;
|
|
using std::weak_ptr;
|
|
using std::weak_ptr;
|
|
|
|
|
|
PeerConnection::PeerConnection() : PeerConnection(Configuration()) {
|
|
PeerConnection::PeerConnection() : PeerConnection(Configuration()) {
|
|
-#ifdef _WIN32
|
|
|
|
- WSADATA wsaData;
|
|
|
|
- if (WSAStartup(MAKEWORD(2, 2), &wsaData))
|
|
|
|
- throw std::runtime_error("WSAStartup failed, error=" + std::to_string(WSAGetLastError()));
|
|
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
|
|
|
|
PeerConnection::PeerConnection(const Configuration &config)
|
|
PeerConnection::PeerConnection(const Configuration &config)
|
|
@@ -49,10 +44,6 @@ PeerConnection::~PeerConnection() {
|
|
mSctpTransport.reset();
|
|
mSctpTransport.reset();
|
|
mDtlsTransport.reset();
|
|
mDtlsTransport.reset();
|
|
mIceTransport.reset();
|
|
mIceTransport.reset();
|
|
-
|
|
|
|
-#ifdef _WIN32
|
|
|
|
- WSACleanup();
|
|
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void PeerConnection::close() {
|
|
void PeerConnection::close() {
|