mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
17 lines
240 B
C++
17 lines
240 B
C++
|
|
#include <iostream>
|
|
|
|
#include "signal_server.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
SignalServer s;
|
|
std::string port = "";
|
|
if (argc > 1) {
|
|
port = argv[1];
|
|
} else {
|
|
port = "9090";
|
|
}
|
|
|
|
s.run(std::stoi(port));
|
|
return 0;
|
|
} |