SOCK_Dgram_Mcast.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // SOCK_Dgram_Mcast.inl,v 4.2 2005/11/24 09:48:54 ossama Exp
00004 
00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE int
00008 ACE_SOCK_Dgram_Mcast::set_option (int option,
00009                                   char optval)
00010 {
00011   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::set_option");
00012 
00013   if (this->get_handle () == ACE_INVALID_HANDLE)
00014     return -1;
00015 
00016   int level = IPPROTO_IP;
00017 #if defined (IPPROTO_IPV6) && ! defined (INTEGRITY)
00018   if (this->send_addr_.get_type () == PF_INET6)
00019     level = IPPROTO_IPV6;
00020 #endif /* IPPROTO_IPV6 */
00021 
00022   return this->ACE_SOCK::set_option (level,
00023                                      option,
00024                                      &optval,
00025                                      sizeof (optval));
00026 }
00027 
00028 ACE_INLINE ssize_t
00029 ACE_SOCK_Dgram_Mcast::send (const void *buf,
00030                             size_t n,
00031                             int flags) const
00032 {
00033   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::send");
00034   return this->ACE_SOCK_Dgram::send (buf,
00035                                      n,
00036                                      this->send_addr_,
00037                                      flags);
00038 }
00039 
00040 ACE_INLINE ssize_t
00041 ACE_SOCK_Dgram_Mcast::send (const iovec iov[],
00042                             int n,
00043                             int flags) const
00044 {
00045   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::send");
00046   return this->ACE_SOCK_Dgram::send (iov,
00047                                      n,
00048                                      this->send_addr_,
00049                                      flags);
00050 }
00051 
00052 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:42:04 2006 for ACE by doxygen 1.3.6