Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

SOCK_Dgram_Bcast.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: SOCK_Dgram_Bcast.i,v 1.1.1.3 2003/02/21 18:36:32 chad Exp $
00003 
00004 // SOCK_Dgram_Bcast.i
00005 
00006 ASYS_INLINE
00007 ACE_Bcast_Node::~ACE_Bcast_Node (void)
00008 {
00009 }
00010 
00011 ASYS_INLINE
00012 ACE_SOCK_Dgram_Bcast::~ACE_SOCK_Dgram_Bcast (void)
00013 {
00014   ACE_TRACE ("ACE_SOCK_Dgram_Bcast::~ACE_SOCK_Dgram_Bcast");
00015 }
00016 
00017 // Broadcast an N byte datagram to ADDR (note that addr must be
00018 // preassigned to the broadcast address of the subnet...)
00019 
00020 ASYS_INLINE ssize_t
00021 ACE_SOCK_Dgram_Bcast::send (const void *buf, 
00022                             size_t n, 
00023                             const ACE_Addr &addr, 
00024                             int flags) const
00025 {
00026   ACE_TRACE ("ACE_SOCK_Dgram_Bcast::send");
00027 
00028   sockaddr *saddr = (sockaddr *) addr.get_addr ();
00029   int len = addr.get_size ();
00030   return ACE_OS::sendto (this->get_handle (), (const char *) buf, n, flags, 
00031                          (struct sockaddr *) saddr, len);
00032 }
00033 
00034 

Generated on Mon Jun 16 11:21:20 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002