資源簡介
《代碼閱讀》光盤文件 放到CSDN資源做個備份 順便分享給有需要的童鞋們
代碼片段和文件信息
//?Acceptor.cppv?4.65?2001/09/06?17:25:32?othman?Exp
#ifndef?ACE_ACCEPTOR_C
#define?ACE_ACCEPTOR_C
#include?“ace/ACE.h“
#if?!defined?(ACE_LACKS_PRAGMA_ONCE)
#?pragma?once
#endif?/*?ACE_LACKS_PRAGMA_ONCE?*/
#include?“ace/Acceptor.h“
#include?“ace/Handle_Set.h“
#include?“ace/WFMO_Reactor.h“
ACE_RCSID(ace?Acceptor?“Acceptor.cppv?4.65?2001/09/06?17:25:32?othman?Exp“)
ACE_ALLOC_HOOK_DEFINE(ACE_Acceptor)
template??void
ACE_Acceptor::dump?(void)?const
{
??ACE_TRACE?(“ACE_Acceptor::dump“);
??ACE_DEBUG?((LM_DEBUG?ACE_BEGIN_DUMP?this));
??this->peer_acceptor_.dump?();
??ACE_DEBUG?((LM_DEBUG?ACE_END_DUMP));
}
template?
ACE_Acceptor::operator?ACE_PEER_ACCEPTOR?&?()?const
{
??ACE_TRACE?(“ACE_Acceptor::operator?ACE_PEER_ACCEPTOR?&“);
??return?(ACE_PEER_ACCEPTOR?&)?this->peer_acceptor_;
}
template??ACE_PEER_ACCEPTOR?&
ACE_Acceptor::acceptor?(void)?const
{
??ACE_TRACE?(“ACE_Acceptor::acceptor“);
??return?ACE_const_cast?(ACE_PEER_ACCEPTOR?&?this->peer_acceptor_);
}
//?Returns?ACE_HANDLE?of?the?underlying?Acceptor_Strategy.
template??ACE_HANDLE
ACE_Acceptor::get_handle?(void)?const
{
??ACE_TRACE?(“ACE_Acceptor::get_handle“);
??return?this->peer_acceptor_.get_handle?();
}
//?Initialize?the?appropriate?strategies?for?creation?passive
//?connection?acceptance?and?concurrency?and?then?register?
//?with?the?Reactor?and?listen?for?connection?requests?at?the
//?designated?.
template??int
ACE_Acceptor::open
??(const?ACE_PEER_ACCEPTOR_ADDR?&local_addr
???ACE_Reactor?*reactor
???int?flags
???int?use_select
???int?reuse_addr)
{
??ACE_TRACE?(“ACE_Acceptor::open“);
??this->flags_?=?flags;
??this->use_select_?=?use_select;
??this->reuse_addr_?=?reuse_addr;
??this->peer_acceptor_addr_?=?local_addr;
??//?Must?supply?a?valid?Reactor?to?Acceptor::open()...
??if?(reactor?==?0)
????{
??????errno?=?EINVAL;
??????return?-1;
????}
??if?(this->peer_acceptor_.open?(local_addr?reuse_addr)?==?-1)
????return?-1;
??//?Set?the?peer?acceptor‘s?handle?into?non-blocking?mode.??This?is?a
??//?safe-guard?against?the?race?condition?that?can?otherwise?occur
??//?between?the?time?when?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-11-09?00:56??ace\
?????文件???????45317??2000-06-15?01:04??ace\acconfig.h
?????目錄???????????0??2014-11-09?00:51??ace\ace\
?????文件????????1188??2000-02-07?03:45??ace\ace-config.1.in
?????文件????????4743??1999-11-16?01:01??ace\ace-config.in
?????文件??????116049??2001-10-05?12:17??ace\ACE-INSTALL
?????文件??????117150??2001-09-30?14:57??ace\ACE-INSTALL.html
?????文件????????9543??1997-07-22?21:04??ace\ACE-install.sh
?????文件?????????167??1999-03-22?01:24??ace\aceConf.sh.in
?????文件???????43336??2001-09-06?17:25??ace\ace\Acceptor.cpp
?????文件???????21375??2001-06-02?20:01??ace\ace\Acceptor.h
?????文件???????30001??2001-03-15?20:00??ace\ace\ace-dll.icc
?????文件???????14185??2000-12-21?22:15??ace\ace\ace-lib.icc
?????文件???????94598??2001-09-04?17:52??ace\ace\ace.cpp
?????文件?????????749??1998-08-31?18:56??ace\ace\ace.dsw
?????文件???????27774??2001-08-18?19:00??ace\ace\ace.h
?????文件????????8520??2001-03-02?23:36??ace\ace\ace.i
?????文件???????13613??2001-08-15?03:59??ace\ace\ace.icc
?????文件?????????162??2001-04-03?23:59??ace\ace\ace.icp
?????文件????????1159??2001-03-04?15:46??ace\ace\ace.rc
?????文件?????????860??2000-11-13?23:24??ace\ace\ace.vcw
?????文件??????????15??1998-04-10?08:41??ace\ace\ace_ce_dll.cfg
?????文件???????59175??2001-09-19?19:24??ace\ace\ace_dll.dsp
?????文件?????2173374??2001-08-10?23:03??ace\ace\ace_dll.vcp
?????文件????????1582??2000-10-10?22:16??ace\ace\ACE_export.h
?????文件???????57741??2001-09-19?19:24??ace\ace\ace_lib.dsp
?????文件??????????29??2001-03-04?15:46??ace\ace\ace_message_table.bin
?????文件??????114364??2001-03-11?02:21??ace\ace\ace_os_dll.vcp
?????文件?????????415??2001-04-03?23:59??ace\ace\ace_vacpp_options.icc
?????文件???????12963??2001-07-28?03:18??ace\ace\ace_wchar.h
?????文件????????2733??2001-07-28?03:18??ace\ace\ace_wchar.inl
............此處省略20273個文件信息
評論
共有 條評論