Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / MEM_Acceptor.inl
blob35b2d9adaa2a072a27c880990354055977dd0103
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE int
5 ACE_MEM_Acceptor::open (const ACE_Addr &local_sap,
6                         ACE_Protocol_Info *protocolinfo,
7                         ACE_SOCK_GROUP g,
8                         u_long flags,
9                         int reuse_addr,
10                         int protocol_family,
11                         int backlog,
12                         int protocol)
14   return this->ACE_SOCK_Acceptor::open
15     (local_sap, protocolinfo, g, flags, reuse_addr, protocol_family,
16      backlog, protocol);
19 ACE_INLINE int
20 ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream,
21                           ACE_Addr *remote_addr,
22                           ACE_Time_Value *timeout,
23                           bool restart,
24                           bool reset_new_handle) const
26   return this->ACE_SOCK_Acceptor::accept
27     (new_stream, remote_addr, timeout, restart, reset_new_handle);
30 ACE_INLINE int
31 ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream,
32                           ACE_Accept_QoS_Params qos_params,
33                           ACE_Addr *remote_addr,
34                           ACE_Time_Value *timeout,
35                           bool restart,
36                           bool reset_new_handle) const
38   return this->ACE_SOCK_Acceptor::accept
39     (new_stream, qos_params, remote_addr, timeout, restart, reset_new_handle);
42 ACE_INLINE int
43 ACE_MEM_Acceptor::get_local_addr (ACE_MEM_Addr &sap) const
45   ACE_INET_Addr temp;
47   this->ACE_SOCK_Acceptor::get_local_addr (temp);
48   sap.set_port_number (temp.get_port_number ());
49   return 0;
52 ACE_INLINE const ACE_TCHAR *
53 ACE_MEM_Acceptor::mmap_prefix () const
55   return this->mmap_prefix_;
58 ACE_INLINE void
59 ACE_MEM_Acceptor::mmap_prefix (const ACE_TCHAR *prefix)
61   if (prefix == 0)
62     {
63       this->mmap_prefix_ = 0;
64     }
65   else
66     {
67       this->mmap_prefix_ = ACE::strnew (prefix);
68     }
71 ACE_INLINE ACE_MEM_IO::Signal_Strategy
72 ACE_MEM_Acceptor::preferred_strategy () const
74   return this->preferred_strategy_;
77 ACE_INLINE void
78 ACE_MEM_Acceptor::preferred_strategy (ACE_MEM_IO::Signal_Strategy strategy)
80   this->preferred_strategy_ = strategy;
83 ACE_INLINE void
84 ACE_MEM_Acceptor::init_buffer_size (ACE_OFF_T bytes)
86   this->malloc_options_.minimum_bytes_ = bytes;
89 ACE_END_VERSIONED_NAMESPACE_DECL