mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Support mesh connection
This commit is contained in:
@@ -14,7 +14,7 @@ int main(int argc, char** argv) {
|
||||
PeerPtr* peer = CreatePeer(¶ms);
|
||||
JoinConnection(peer, transmission_id.c_str(), user_id.c_str());
|
||||
|
||||
std::string msg = "Offer peer";
|
||||
std::string msg = "[" + user_id + "] Offer peer";
|
||||
|
||||
int i = 100;
|
||||
while (i--) {
|
||||
|
||||
@@ -6,10 +6,12 @@ int main(int argc, char** argv) {
|
||||
Params params;
|
||||
params.cfg_path = "../../../../config/config.ini";
|
||||
|
||||
std::string transmission_id = "000000";
|
||||
std::string user_id = argv[1];
|
||||
PeerPtr* peer = CreatePeer(¶ms);
|
||||
CreateConnection(peer);
|
||||
CreateConnection(peer, transmission_id.c_str(), user_id.c_str());
|
||||
|
||||
std::string msg = "Answer peer";
|
||||
std::string msg = "[" + user_id + "] Answer peer";
|
||||
|
||||
int i = 100;
|
||||
while (i--) {
|
||||
|
||||
Reference in New Issue
Block a user