mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Add test interface for ice data transport
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user