From 99aa8c60282c7b8072eb35eb9ac815702f5bf586 Mon Sep 17 00:00:00 2001 From: "William R. Otte" Date: Tue, 4 Mar 2008 14:51:23 +0000 Subject: undoing accidental deletion --- ACE/ace/MEM_Acceptor.inl | 103 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 ACE/ace/MEM_Acceptor.inl (limited to 'ACE/ace/MEM_Acceptor.inl') diff --git a/ACE/ace/MEM_Acceptor.inl b/ACE/ace/MEM_Acceptor.inl new file mode 100644 index 00000000000..c06cdaaee4a --- /dev/null +++ b/ACE/ace/MEM_Acceptor.inl @@ -0,0 +1,103 @@ +// -*- C++ -*- +// +// $Id$ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE int +ACE_MEM_Acceptor::open (const ACE_Addr &local_sap, + ACE_Protocol_Info *protocolinfo, + ACE_SOCK_GROUP g, + u_long flags, + int reuse_addr, + int protocol_family, + int backlog, + int protocol) +{ + return this->ACE_SOCK_Acceptor::open + (local_sap, protocolinfo, g, flags, reuse_addr, protocol_family, + backlog, protocol); +} + +ACE_INLINE int +ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream, + ACE_Addr *remote_addr, + ACE_Time_Value *timeout, + int restart, + int reset_new_handle) const +{ + return this->ACE_SOCK_Acceptor::accept + (new_stream, remote_addr, timeout, restart, reset_new_handle); +} + +#if !defined (ACE_HAS_WINCE) +ACE_INLINE int +ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream, + ACE_Accept_QoS_Params qos_params, + ACE_Addr *remote_addr, + ACE_Time_Value *timeout, + int restart, + int reset_new_handle) const +{ + return this->ACE_SOCK_Acceptor::accept + (new_stream, qos_params, remote_addr, timeout, restart, reset_new_handle); +} +#endif // ACE_HAS_WINCE + +ACE_INLINE int +ACE_MEM_Acceptor::get_local_addr (ACE_MEM_Addr &sap) const +{ + ACE_INET_Addr temp; + + this->ACE_SOCK_Acceptor::get_local_addr (temp); + sap.set_port_number (temp.get_port_number ()); + return 0; +} + +ACE_INLINE const ACE_TCHAR * +ACE_MEM_Acceptor::mmap_prefix (void) const +{ + return this->mmap_prefix_; +} + +ACE_INLINE void +ACE_MEM_Acceptor::mmap_prefix (const ACE_TCHAR *prefix) +{ + if (prefix == 0) + { + this->mmap_prefix_ = 0; + } + else + { + this->mmap_prefix_ = ACE::strnew (prefix); + } +} + +ACE_INLINE ACE_MEM_IO::Signal_Strategy +ACE_MEM_Acceptor::preferred_strategy (void) const +{ + return this->preferred_strategy_; +} + +ACE_INLINE void +ACE_MEM_Acceptor::preferred_strategy (ACE_MEM_IO::Signal_Strategy strategy) +{ + this->preferred_strategy_ = strategy; +} + +ACE_INLINE void +ACE_MEM_Acceptor::init_buffer_size (ACE_OFF_T bytes) +{ + this->malloc_options_.minimum_bytes_ = bytes; +} + +ACE_INLINE ACE_MEM_SAP::MALLOC_OPTIONS & +ACE_MEM_Acceptor::malloc_options (void) +{ + // @@ This function has been deprecated and will be removed in the + // future. + + return this->malloc_options_; +} + +ACE_END_VERSIONED_NAMESPACE_DECL -- cgit v1.2.1