Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
cdac1ac9
Commit
cdac1ac9
authored
Nov 15, 2016
by
Caleb Epstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix htons copy pasta
parent
b9b0fd87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
udp_address.cpp
src/udp_address.cpp
+3
-3
No files found.
src/udp_address.cpp
View file @
cdac1ac9
...
...
@@ -80,7 +80,7 @@ int zmq::udp_address_t::resolve (const char *name_, bool bind_)
// Only when the udp should bind we allow * as the address
if
(
addr_str
==
"*"
&&
bind_
)
dest_address
.
sin_addr
.
s_addr
=
hton
s
(
INADDR_ANY
);
dest_address
.
sin_addr
.
s_addr
=
hton
l
(
INADDR_ANY
);
else
dest_address
.
sin_addr
.
s_addr
=
inet_addr
(
addr_str
.
c_str
());
...
...
@@ -100,7 +100,7 @@ int zmq::udp_address_t::resolve (const char *name_, bool bind_)
else
is_mutlicast
=
false
;
iface
.
s_addr
=
hton
s
(
INADDR_ANY
);
iface
.
s_addr
=
hton
l
(
INADDR_ANY
);
if
(
iface
.
s_addr
==
INADDR_NONE
)
{
errno
=
EINVAL
;
return
-
1
;
...
...
@@ -113,7 +113,7 @@ int zmq::udp_address_t::resolve (const char *name_, bool bind_)
else
{
bind_address
.
sin_family
=
AF_INET
;
bind_address
.
sin_port
=
htons
(
port
);
bind_address
.
sin_addr
.
s_addr
=
hton
s
(
INADDR_ANY
);
bind_address
.
sin_addr
.
s_addr
=
hton
l
(
INADDR_ANY
);
}
address
=
name_
;
...
...
Write
Preview
Markdown
is supported
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