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
f577ceab
Commit
f577ceab
authored
Nov 15, 2016
by
Caleb Epstein
Committed by
Caleb Epstein
Nov 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: multicast is spelled incorrectly in udp_address class
Solution: Fix typo of 'mutlicast' -> 'multicast'
parent
ace95327
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
udp_address.cpp
src/udp_address.cpp
+5
-5
udp_address.hpp
src/udp_address.hpp
+1
-1
No files found.
src/udp_address.cpp
View file @
f577ceab
...
...
@@ -45,7 +45,7 @@
#endif
zmq
::
udp_address_t
::
udp_address_t
()
:
is_mu
tl
icast
(
false
)
:
is_mu
lt
icast
(
false
)
{
memset
(
&
bind_address
,
0
,
sizeof
bind_address
);
memset
(
&
dest_address
,
0
,
sizeof
dest_address
);
...
...
@@ -95,10 +95,10 @@ int zmq::udp_address_t::resolve (const char *name_, bool bind_)
int
i
=
dest_address
.
sin_addr
.
s_addr
&
0xFF
;
if
(
i
>=
224
&&
i
<=
239
)
{
multicast
=
dest_address
.
sin_addr
;
is_mu
tl
icast
=
true
;
is_mu
lt
icast
=
true
;
}
else
is_mu
tl
icast
=
false
;
is_mu
lt
icast
=
false
;
iface
.
s_addr
=
htonl
(
INADDR_ANY
);
if
(
iface
.
s_addr
==
INADDR_NONE
)
{
...
...
@@ -108,7 +108,7 @@ int zmq::udp_address_t::resolve (const char *name_, bool bind_)
// If a should bind and not a multicast, the dest address
// is actually the bind address
if
(
bind_
&&
!
is_mu
tl
icast
)
if
(
bind_
&&
!
is_mu
lt
icast
)
bind_address
=
dest_address
;
else
{
bind_address
.
sin_family
=
AF_INET
;
...
...
@@ -129,7 +129,7 @@ int zmq::udp_address_t::to_string (std::string &addr_)
bool
zmq
::
udp_address_t
::
is_mcast
()
const
{
return
is_mu
tl
icast
;
return
is_mu
lt
icast
;
}
const
sockaddr
*
zmq
::
udp_address_t
::
bind_addr
()
const
...
...
src/udp_address.hpp
View file @
f577ceab
...
...
@@ -70,7 +70,7 @@ namespace zmq
in_addr
iface
;
sockaddr_in
bind_address
;
sockaddr_in
dest_address
;
bool
is_mu
tl
icast
;
bool
is_mu
lt
icast
;
std
::
string
address
;
};
}
...
...
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