mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +00:00
Added STUN server to test
This commit is contained in:
@ -27,8 +27,11 @@ using namespace rtc;
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
auto pc1 = std::make_shared<PeerConnection>();
|
rtc::Configuration config;
|
||||||
auto pc2 = std::make_shared<PeerConnection>();
|
config.iceServers.emplace_back("stun.l.google.com:19302");
|
||||||
|
|
||||||
|
auto pc1 = std::make_shared<PeerConnection>(config);
|
||||||
|
auto pc2 = std::make_shared<PeerConnection>(config);
|
||||||
|
|
||||||
pc1->onLocalDescription([pc2](const Description &sdp) {
|
pc1->onLocalDescription([pc2](const Description &sdp) {
|
||||||
cout << "Description 1: " << sdp << endl;
|
cout << "Description 1: " << sdp << endl;
|
||||||
|
Reference in New Issue
Block a user