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
4926f5f5
Commit
4926f5f5
authored
Jan 20, 2018
by
Jan Kuri
Committed by
Alex Hultman
Jan 20, 2018
Browse files
make clear to call bind() from global namespace (#756)
parent
bdea5fd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Node.h
View file @
4926f5f5
...
...
@@ -172,7 +172,7 @@ public:
int
enabled
=
true
;
setsockopt
(
listenFd
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
enabled
,
sizeof
(
enabled
));
if
(
bind
(
listenFd
,
listenAddr
->
ai_addr
,
listenAddr
->
ai_addrlen
)
||
::
listen
(
listenFd
,
512
))
{
if
(
::
bind
(
listenFd
,
listenAddr
->
ai_addr
,
listenAddr
->
ai_addrlen
)
||
::
listen
(
listenFd
,
512
))
{
netContext
->
closeSocket
(
listenFd
);
freeaddrinfo
(
result
);
return
true
;
...
...
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