/usr/include/ace/SOCK_Dgram_Bcast.inl is in libace-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | // -*- C++ -*-
//
// $Id: SOCK_Dgram_Bcast.inl 80826 2008-03-04 14:51:23Z wotte $
#include "ace/OS_NS_sys_socket.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_Bcast_Node::~ACE_Bcast_Node (void)
{
}
ACE_INLINE
ACE_SOCK_Dgram_Bcast::~ACE_SOCK_Dgram_Bcast (void)
{
ACE_TRACE ("ACE_SOCK_Dgram_Bcast::~ACE_SOCK_Dgram_Bcast");
}
// Broadcast an N byte datagram to ADDR (note that addr must be
// preassigned to the broadcast address of the subnet...)
ACE_INLINE ssize_t
ACE_SOCK_Dgram_Bcast::send (const void *buf,
size_t n,
const ACE_Addr &addr,
int flags) const
{
ACE_TRACE ("ACE_SOCK_Dgram_Bcast::send");
sockaddr *saddr = (sockaddr *) addr.get_addr ();
int len = addr.get_size ();
return ACE_OS::sendto (this->get_handle (), (const char *) buf, n, flags,
(struct sockaddr *) saddr, len);
}
ACE_END_VERSIONED_NAMESPACE_DECL
|