diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-08-14 15:03:38 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-08-14 15:03:38 +0000 |
| commit | 11dc664f836e445480936db7de5ac22800d516fb (patch) | |
| tree | b3d334256d585f19ec16eb0e8b7e7f748bf55c52 /src/FeatureConfig.cc | |
| parent | e3b0153e85247f546387aa50e7e7b96f6ac902a2 (diff) | |
2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/FeatureConfig.cc
(FEATURE_ASYNC_DNS): New definition.
(FeatureConfig): Added aysnc DNS entry.
To replace CommandUuid with Command* in SocketEntry and
NameResolverEntry:
* src/DownloadEngine.h
(CommandUuids): Removed.
(SocketEntry::commandUuid): Removed.
(SocketEntry::command): New variable.
(SocketEntry::SocketEntry): Updated.
(SocketEntry::operator==): Updated.
(NameResolverEntry::commandUuid): Removed.
(NameResolverEntry::command): New variable.
(NameResolverEntry::NameResolverEntry): Updated.
(NameResolverEntry::operator==): Updated.
(waitData): Changed the argument type.
(addSocketForReadCheck): Changed the argument type.
(deleteSocketForReadCheck): Changed the argument type.
(addSocketForWriteCheck): Changed the argument type.
(deleteSocketForWriteCheck): Changed the argument type.
(addNameResolverCheck): Changed the argument type.
(deleteNameResolverCheck): Changed the argument type.
* src/DownloadEngine.cc
(FindCommand): Removed.
(run): Removed activeUuid. Added activeCommands instead.
(AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
(AccumulateActiveCommand): New function object.
(waitData): Use AccumulateActiveCommand.
(addSocketForReadCheck): Use Command instead of CommandUuid.
(deleteSocketForReadCheck): Use Command instead of CommandUuid.
(addSocketForWriteCheck): Use Command instead of CommandUuid.
(deleteSocketForWriteCheck): Use Command instead of CommandUuid.
(addNameResolverCheck): Use Command instead of CommandUuid.
(deleteNameResolverCheck): Use Command instead of CommandUuid.
* src/AbstractCommand.cc
(disableReadCheckSocket): Updated according to the changes in
DownloadEngine.
(setReadCheckSocket): Updated according to the changes in
DownloadEngine.
(disableWriteCheckSocket): Updated according to the changes in
DownloadEngine.
(setWriteCheckSocket): Updated according to the changes in
DownloadEngine.
(setNameResolverCheck): Updated according to the changes in
DownloadEngine.
(disableNameResolverCheck): Updated according to the changes in
DownloadEngine.
* src/AbstractCommand.cc
(disableReadCheckSocket): Updated according to the changes in
DownloadEngine.
(setReadCheckSocket): Updated according to the changes in
DownloadEngine.
(disableWriteCheckSocket): Updated according to the changes in
DownloadEngine.
(setWriteCheckSocket): Updated according to the changes in
DownloadEngine.
* release 0.7.1
Diffstat (limited to 'src/FeatureConfig.cc')
| -rw-r--r-- | src/FeatureConfig.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FeatureConfig.cc b/src/FeatureConfig.cc index 9e4ab013..79922710 100644 --- a/src/FeatureConfig.cc +++ b/src/FeatureConfig.cc @@ -29,6 +29,7 @@ FeatureConfig* FeatureConfig::featureConfig = 0; #define FEATURE_BITTORRENT "bittorrent" #define FEATURE_METALINK "metalink" #define FEATURE_MESSAGE_DIGEST "message digest" +#define FEATURE_ASYNC_DNS "async dns" FeatureConfig::FeatureConfig() { static PortMap::value_type portArray[] = { @@ -71,6 +72,13 @@ FeatureConfig::FeatureConfig() { false #endif // ENABLE_MESSAGE_DIGEST ), + FeatureMap::value_type(FEATURE_ASYNC_DNS, +#ifdef HAVE_LIBARES + true +#else + false +#endif // HAVE_LIBARES + ), }; int featureArraySize = sizeof(featureArray)/sizeof(FeatureMap::value_type); |
