2 #include "ace/OS_NS_sys_socket.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_SOCK_Dgram_Bcast::~ACE_SOCK_Dgram_Bcast ()
9 ACE_TRACE ("ACE_SOCK_Dgram_Bcast::~ACE_SOCK_Dgram_Bcast");
12 // Broadcast an N byte datagram to ADDR (note that addr must be
13 // preassigned to the broadcast address of the subnet...)
16 ACE_SOCK_Dgram_Bcast::send (const void *buf,
21 ACE_TRACE ("ACE_SOCK_Dgram_Bcast::send");
23 sockaddr *saddr = (sockaddr *) addr.get_addr ();
24 int len = addr.get_size ();
25 return ACE_OS::sendto (this->get_handle (), (const char *) buf, n, flags,
26 (struct sockaddr *) saddr, len);
29 ACE_END_VERSIONED_NAMESPACE_DECL