summaryrefslogtreecommitdiff
path: root/ace/SOCK_Dgram_Bcast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/SOCK_Dgram_Bcast.cpp')
-rw-r--r--ace/SOCK_Dgram_Bcast.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/ace/SOCK_Dgram_Bcast.cpp b/ace/SOCK_Dgram_Bcast.cpp
index ac8ea8f00fe..4138d067c37 100644
--- a/ace/SOCK_Dgram_Bcast.cpp
+++ b/ace/SOCK_Dgram_Bcast.cpp
@@ -15,6 +15,8 @@
ACE_RCSID(ace, SOCK_Dgram_Bcast, "$Id$")
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Dgram_Bcast)
ACE_Bcast_Node::ACE_Bcast_Node (ACE_INET_Addr &addr,
@@ -172,7 +174,7 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
There are addresses longer than sizeof (struct sockaddr) eg. IPv6
or QNX::links. In this case address does not fit into struct ifreq.
The code below could be applied everywhere, but not every system
- provides sockaddr.sa_len field.
+ provides sockaddr.sa_len field.
*/
for (int nbytes = ifc.ifc_len; nbytes >= (int) sizeof (struct ifreq) &&
((ifr->ifr_addr.sa_len > sizeof (struct sockaddr)) ?
@@ -225,8 +227,8 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
(char *) &flags) == -1)
{
ACE_ERROR ((LM_ERROR, "%p [%s]\n",
- "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get interface flags)",
- flags.ifr_name));
+ "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get interface flags)",
+ flags.ifr_name));
continue;
}
@@ -234,8 +236,8 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
IFF_UP) == 0)
{
ACE_ERROR ((LM_ERROR, "%p [%s]\n",
- "ACE_SOCK_Dgram_Bcast::mk_broadcast: Network interface is not up",
- flags.ifr_name));
+ "ACE_SOCK_Dgram_Bcast::mk_broadcast: Network interface is not up",
+ flags.ifr_name));
continue;
}
@@ -250,8 +252,8 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
SIOCGIFBRDADDR,
(char *) &if_req) == -1)
ACE_ERROR ((LM_ERROR, "%p [%s]\n",
- "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get broadaddr)",
- flags.ifr_name));
+ "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get broadaddr)",
+ flags.ifr_name));
else
{
ACE_INET_Addr addr (reinterpret_cast <sockaddr_in *>
@@ -374,3 +376,5 @@ ACE_SOCK_Dgram_Bcast::send (const iovec iov[],
return ACE_SOCK_Dgram::send (iov, n, addr, flags);
}
#endif /* ACE_HAS_MSG */
+
+ACE_END_VERSIONED_NAMESPACE_DECL