Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
uWebSockets
Commits
6f00d477
Commit
6f00d477
authored
Aug 13, 2017
by
Lukas Bergdoll
Committed by
Alex Hultman
Aug 13, 2017
Browse files
Add basic port validation (#679)
parent
e402f022
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6f00d477
...
...
@@ -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
)
.
...
...
examples/echo.cpp
View file @
6f00d477
...
...
@@ -8,6 +8,7 @@ int main()
ws
->
send
(
message
,
length
,
opCode
);
});
h
.
listen
(
3000
);
h
.
run
();
if
(
h
.
listen
(
3000
))
{
h
.
run
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment