Commit 6f00d477 authored by Lukas Bergdoll's avatar Lukas Bergdoll Committed by Alex Hultman

Add basic port validation (#679)

parent e402f022
......@@ -30,8 +30,9 @@ int main() {
res->end(const char *, size_t);
});
h.listen(3000);
h.run();
if (h.listen(3000)) {
h.run();
}
}
```
Get the sources of the uws.chat server [here](https://github.com/uWebSockets/website/blob/master/main.cpp). Learn from the tests [here](tests/main.cpp).
......
......@@ -8,6 +8,7 @@ int main()
ws->send(message, length, opCode);
});
h.listen(3000);
h.run();
if (h.listen(3000)) {
h.run();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment