mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 06:44:16 +02:00
Problem: multicast is spelled incorrectly in udp_address class
Solution: Fix typo of 'mutlicast' -> 'multicast'
This commit is contained in:

committed by
Caleb Epstein

parent
ace95327a3
commit
f577ceab4b
@@ -45,7 +45,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
zmq::udp_address_t::udp_address_t ()
|
zmq::udp_address_t::udp_address_t ()
|
||||||
: is_mutlicast(false)
|
: is_multicast(false)
|
||||||
{
|
{
|
||||||
memset (&bind_address, 0, sizeof bind_address);
|
memset (&bind_address, 0, sizeof bind_address);
|
||||||
memset (&dest_address, 0, sizeof dest_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;
|
int i = dest_address.sin_addr.s_addr & 0xFF;
|
||||||
if(i >= 224 && i <= 239) {
|
if(i >= 224 && i <= 239) {
|
||||||
multicast = dest_address.sin_addr;
|
multicast = dest_address.sin_addr;
|
||||||
is_mutlicast = true;
|
is_multicast = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
is_mutlicast = false;
|
is_multicast = false;
|
||||||
|
|
||||||
iface.s_addr = htonl (INADDR_ANY);
|
iface.s_addr = htonl (INADDR_ANY);
|
||||||
if (iface.s_addr == INADDR_NONE) {
|
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
|
// If a should bind and not a multicast, the dest address
|
||||||
// is actually the bind address
|
// is actually the bind address
|
||||||
if (bind_ && !is_mutlicast)
|
if (bind_ && !is_multicast)
|
||||||
bind_address = dest_address;
|
bind_address = dest_address;
|
||||||
else {
|
else {
|
||||||
bind_address.sin_family = AF_INET;
|
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
|
bool zmq::udp_address_t::is_mcast () const
|
||||||
{
|
{
|
||||||
return is_mutlicast;
|
return is_multicast;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sockaddr* zmq::udp_address_t::bind_addr () const
|
const sockaddr* zmq::udp_address_t::bind_addr () const
|
||||||
|
@@ -70,7 +70,7 @@ namespace zmq
|
|||||||
in_addr iface;
|
in_addr iface;
|
||||||
sockaddr_in bind_address;
|
sockaddr_in bind_address;
|
||||||
sockaddr_in dest_address;
|
sockaddr_in dest_address;
|
||||||
bool is_mutlicast;
|
bool is_multicast;
|
||||||
std::string address;
|
std::string address;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user