00001
00002
00003
00004
00005
00006 ASYS_INLINE int
00007 ACE_MEM_Acceptor::open (const ACE_Addr &local_sap,
00008 ACE_Protocol_Info *protocolinfo,
00009 ACE_SOCK_GROUP g,
00010 u_long flags,
00011 int reuse_addr,
00012 int protocol_family,
00013 int backlog,
00014 int protocol)
00015 {
00016 return this->ACE_SOCK_Acceptor::open
00017 (local_sap, protocolinfo, g, flags, reuse_addr, protocol_family,
00018 backlog, protocol);
00019 }
00020
00021 ASYS_INLINE int
00022 ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream,
00023 ACE_Addr *remote_addr,
00024 ACE_Time_Value *timeout,
00025 int restart,
00026 int reset_new_handle) const
00027 {
00028 return this->ACE_SOCK_Acceptor::accept
00029 (new_stream, remote_addr, timeout, restart, reset_new_handle);
00030 }
00031
00032 #if !defined (ACE_HAS_WINCE)
00033 ASYS_INLINE int
00034 ACE_MEM_Acceptor::accept (ACE_SOCK_Stream &new_stream,
00035 ACE_Accept_QoS_Params qos_params,
00036 ACE_Addr *remote_addr,
00037 ACE_Time_Value *timeout,
00038 int restart,
00039 int reset_new_handle) const
00040 {
00041 return this->ACE_SOCK_Acceptor::accept
00042 (new_stream, qos_params, remote_addr, timeout, restart, reset_new_handle);
00043 }
00044 #endif // ACE_HAS_WINCE
00045
00046 ASYS_INLINE int
00047 ACE_MEM_Acceptor::get_local_addr (ACE_MEM_Addr &sap) const
00048 {
00049 ACE_INET_Addr temp;
00050
00051 this->ACE_SOCK_Acceptor::get_local_addr (temp);
00052 sap.set_port_number (temp.get_port_number ());
00053 return 0;
00054 }
00055
00056 ASYS_INLINE const ACE_TCHAR *
00057 ACE_MEM_Acceptor::mmap_prefix (void) const
00058 {
00059 return this->mmap_prefix_;
00060 }
00061
00062 ASYS_INLINE void
00063 ACE_MEM_Acceptor::mmap_prefix (const ACE_TCHAR *prefix)
00064 {
00065 if (prefix == 0)
00066 {
00067 this->mmap_prefix_ = 0;
00068 }
00069 else
00070 {
00071 this->mmap_prefix_ = ACE::strnew (prefix);
00072 }
00073 }
00074
00075 ASYS_INLINE ACE_MEM_IO::Signal_Strategy
00076 ACE_MEM_Acceptor::preferred_strategy (void) const
00077 {
00078 return this->preferred_strategy_;
00079 }
00080
00081 ASYS_INLINE void
00082 ACE_MEM_Acceptor::preferred_strategy (ACE_MEM_IO::Signal_Strategy strategy)
00083 {
00084 this->preferred_strategy_ = strategy;
00085 }
00086
00087 ASYS_INLINE ACE_MEM_SAP::MALLOC_OPTIONS &
00088 ACE_MEM_Acceptor::malloc_options (void)
00089 {
00090 return this->malloc_options_;
00091 }