mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Use user id instead of ice username
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "x.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
Params params;
|
||||
params.cfg_path = "../../../../config/config.ini";
|
||||
|
||||
PeerPtr* peer = CreatePeer(¶ms);
|
||||
CreateConnection(peer);
|
||||
|
||||
std::string msg = "Answer peer";
|
||||
|
||||
int i = 100;
|
||||
while (i--) {
|
||||
getchar();
|
||||
std::cout << "Send data: [" << msg << "]" << std::endl;
|
||||
SendData(peer, msg.data(), msg.size());
|
||||
}
|
||||
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
#include <iostream>
|
||||
|
||||
#include "x.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
Params params;
|
||||
params.cfg_path = "../../../../config/config.ini";
|
||||
|
||||
PeerPtr* peer = CreatePeer(¶ms);
|
||||
CreateConnection(peer);
|
||||
|
||||
std::string msg = "Answer peer";
|
||||
|
||||
int i = 100;
|
||||
while (i--) {
|
||||
getchar();
|
||||
std::cout << "Send data: [" << msg << "]" << std::endl;
|
||||
SendData(peer, msg.data(), msg.size());
|
||||
}
|
||||
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user