Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / SOCK_Dgram_Mcast.inl
blobd7920012689bf2747858fe74fd56292920a64827
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE int
5 ACE_SOCK_Dgram_Mcast::set_option (int option,
6                                   char optval)
8   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::set_option");
10   if (this->get_handle () == ACE_INVALID_HANDLE)
11     return -1;
13   int level = IPPROTO_IP;
14 #if defined (IPPROTO_IPV6) && ! defined (INTEGRITY)
15   if (this->send_addr_.get_type () == PF_INET6)
16     level = IPPROTO_IPV6;
17 #endif /* IPPROTO_IPV6 */
19   return this->ACE_SOCK::set_option (level,
20                                      option,
21                                      &optval,
22                                      sizeof (optval));
25 ACE_INLINE ssize_t
26 ACE_SOCK_Dgram_Mcast::send (const void *buf,
27                             size_t n,
28                             int flags) const
30   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::send");
31   return this->ACE_SOCK_Dgram::send (buf,
32                                      n,
33                                      this->send_addr_,
34                                      flags);
37 ACE_INLINE ssize_t
38 ACE_SOCK_Dgram_Mcast::send (const iovec iov[],
39                             int n,
40                             int flags) const
42   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::send");
43   return this->ACE_SOCK_Dgram::send (iov,
44                                      n,
45                                      this->send_addr_,
46                                      flags);
49 ACE_INLINE void
50 ACE_SOCK_Dgram_Mcast::opts (int opts)
52     this->opts_ = opts;
55 ACE_INLINE int
56 ACE_SOCK_Dgram_Mcast::opts () const
58     return this->opts_;
61 ACE_END_VERSIONED_NAMESPACE_DECL