mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Refactor connection create process
This commit is contained in:
@@ -6,8 +6,12 @@ int main(int argc, char** argv) {
|
||||
Params params;
|
||||
params.cfg_path = "../../../../config/config.ini";
|
||||
|
||||
std::string transmission_id = "000000";
|
||||
// std::cout << "Please input which transmisson want to join: ";
|
||||
// std::cin >> transmission_id;
|
||||
|
||||
PeerPtr* peer = CreatePeer(¶ms);
|
||||
JoinConnection(peer, "000000");
|
||||
JoinConnection(peer, transmission_id.c_str());
|
||||
|
||||
std::string msg = "Offer peer";
|
||||
|
||||
Reference in New Issue
Block a user