mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
24 lines
511 B
C++
24 lines
511 B
C++
#include <iostream>
|
|
|
|
#include "rtc.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
Params params;
|
|
params.cfg_path = "/home/zjlab/data/djk/projectx/config/config.ini";
|
|
CreatePeerConnectionWithID(params, "000000");
|
|
|
|
std::cout << "Finish CreatePeerConnectionWithID" << std::endl;
|
|
|
|
std::string msg = "Hello world";
|
|
|
|
int i = 100;
|
|
while (i--) {
|
|
getchar();
|
|
std::cout << "Send data: [" << msg << "]" << std::endl;
|
|
SendData(msg.data(), msg.size());
|
|
}
|
|
|
|
getchar();
|
|
return 0;
|
|
}
|