Add test interface for ice data transport

This commit is contained in:
dijunkun
2023-07-18 11:10:43 +08:00
parent 8276dd6c20
commit ea9ffbd6d8
5 changed files with 33 additions and 82 deletions

View File

@@ -5,6 +5,17 @@
int main(int argc, char **argv) {
CreatePeerConnectionWithID("ws://localhost:9002", "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;
}