mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Support multiple ice connections
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "signal_server.h"
|
||||
|
||||
int main() {
|
||||
SignalServer s;
|
||||
// connect ws://localhost:9002
|
||||
s.run();
|
||||
return 0;
|
||||
int main(int argc, char* argv[]) {
|
||||
SignalServer s;
|
||||
std::string port = argv[1];
|
||||
std::cout << "Port: " << port << std::endl;
|
||||
s.run(std::stoi(port));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user