Restore build on FreeBSD.
[getmangos.git] / dep / ACE_wrappers / ace / SOCK_Dgram_Mcast.inl
blob75457d32d92389681f5ad4af2daef1e4b9fb8fc9
1 // -*- C++ -*-
2 //
3 // $Id: SOCK_Dgram_Mcast.inl 80826 2008-03-04 14:51:23Z wotte $
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_INLINE int
8 ACE_SOCK_Dgram_Mcast::set_option (int option,
9                                   char optval)
11   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::set_option");
13   if (this->get_handle () == ACE_INVALID_HANDLE)
14     return -1;
16   int level = IPPROTO_IP;
17 #if defined (IPPROTO_IPV6) && ! defined (INTEGRITY)
18   if (this->send_addr_.get_type () == PF_INET6)
19     level = IPPROTO_IPV6;
20 #endif /* IPPROTO_IPV6 */
22   return this->ACE_SOCK::set_option (level,
23                                      option,
24                                      &optval,
25                                      sizeof (optval));
28 ACE_INLINE ssize_t
29 ACE_SOCK_Dgram_Mcast::send (const void *buf,
30                             size_t n,
31                             int flags) const
33   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::send");
34   return this->ACE_SOCK_Dgram::send (buf,
35                                      n,
36                                      this->send_addr_,
37                                      flags);
40 ACE_INLINE ssize_t
41 ACE_SOCK_Dgram_Mcast::send (const iovec iov[],
42                             int n,
43                             int flags) const
45   ACE_TRACE ("ACE_SOCK_Dgram_Mcast::send");
46   return this->ACE_SOCK_Dgram::send (iov,
47                                      n,
48                                      this->send_addr_,
49                                      flags);
52 ACE_END_VERSIONED_NAMESPACE_DECL