MEM_Acceptor.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // MEM_Acceptor.inl,v 4.2 2005/10/28 16:14:53 ossama Exp
00004 
00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE int
00008 ACE_MEM_Acceptor::open (const ACE_Addr &local_sap,
00009                         ACE_Protocol_Info *protocolinfo,
00010                         ACE_SOCK_GROUP g,
00011                         u_long flags,
00012                         int reuse_addr,
00013                         int protocol_family,
00014                         int backlog,
00015                         int protocol)
00016 {
00017   return this->ACE_SOCK_Acceptor::open
00018     (local_sap, protocolinfo, g, flags, reuse_addr, protocol_family,
00019      backlog, protocol);
00020 }
00021 
00022 ACE_INLINE int
00023 ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream,
00024                           ACE_Addr *remote_addr,
00025                           ACE_Time_Value *timeout,
00026                           int restart,
00027                           int reset_new_handle) const
00028 {
00029   return this->ACE_SOCK_Acceptor::accept
00030     (new_stream, remote_addr, timeout, restart, reset_new_handle);
00031 }
00032 
00033 #if !defined (ACE_HAS_WINCE)
00034 ACE_INLINE int
00035 ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream,
00036                           ACE_Accept_QoS_Params qos_params,
00037                           ACE_Addr *remote_addr,
00038                           ACE_Time_Value *timeout,
00039                           int restart,
00040                           int reset_new_handle) const
00041 {
00042   return this->ACE_SOCK_Acceptor::accept
00043     (new_stream, qos_params, remote_addr, timeout, restart, reset_new_handle);
00044 }
00045 #endif  // ACE_HAS_WINCE
00046 
00047 ACE_INLINE int
00048 ACE_MEM_Acceptor::get_local_addr (ACE_MEM_Addr &sap) const
00049 {
00050   ACE_INET_Addr temp;
00051 
00052   this->ACE_SOCK_Acceptor::get_local_addr (temp);
00053   sap.set_port_number (temp.get_port_number ());
00054   return 0;
00055 }
00056 
00057 ACE_INLINE const ACE_TCHAR *
00058 ACE_MEM_Acceptor::mmap_prefix (void) const
00059 {
00060   return this->mmap_prefix_;
00061 }
00062 
00063 ACE_INLINE void
00064 ACE_MEM_Acceptor::mmap_prefix (const ACE_TCHAR *prefix)
00065 {
00066   if (prefix == 0)
00067     {
00068       this->mmap_prefix_ = 0;
00069     }
00070   else
00071     {
00072       this->mmap_prefix_ = ACE::strnew (prefix);
00073     }
00074 }
00075 
00076 ACE_INLINE ACE_MEM_IO::Signal_Strategy
00077 ACE_MEM_Acceptor::preferred_strategy (void) const
00078 {
00079   return this->preferred_strategy_;
00080 }
00081 
00082 ACE_INLINE void
00083 ACE_MEM_Acceptor::preferred_strategy (ACE_MEM_IO::Signal_Strategy strategy)
00084 {
00085   this->preferred_strategy_ = strategy;
00086 }
00087 
00088 ACE_INLINE void
00089 ACE_MEM_Acceptor::init_buffer_size (off_t bytes)
00090 {
00091   this->malloc_options_.minimum_bytes_ = bytes;
00092 }
00093 
00094 ACE_INLINE ACE_MEM_SAP::MALLOC_OPTIONS &
00095 ACE_MEM_Acceptor::malloc_options (void)
00096 {
00097   // @@ This function has been deprecated and will be removed in the
00098   // future.
00099 
00100   return this->malloc_options_;
00101 }
00102 
00103 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:41:55 2006 for ACE by doxygen 1.3.6