Public Member Functions | |
Impl (LLMessageSystem *msg) | |
~Impl () | |
void | processPendingAsks () |
void | processPendingReplies () |
void | sendRequest (const char *msg_name, const AskQueue &queue) |
bool | isRequestPending (const LLUUID &id) |
void | processUUIDRequest (LLMessageSystem *msg, bool isGroup) |
void | processUUIDReply (LLMessageSystem *msg, bool isGroup) |
void | notifyObservers (const LLUUID &id, const char *first, const char *last, BOOL group) |
Static Public Member Functions | |
static void | handleUUIDNameRequest (LLMessageSystem *msg, void **userdata) |
static void | handleUUIDNameReply (LLMessageSystem *msg, void **userdata) |
static void | handleUUIDGroupNameRequest (LLMessageSystem *msg, void **userdata) |
static void | handleUUIDGroupNameReply (LLMessageSystem *msg, void **userdata) |
Public Attributes | |
LLMessageSystem * | mMsg |
LLHost | mUpstreamHost |
Cache | mCache |
AskQueue | mAskNameQueue |
AskQueue | mAskGroupQueue |
PendingQueue | mPendingQueue |
ReplyQueue | mReplyQueue |
Observers | mObservers |
LLFrameTimer | mProcessTimer |
Definition at line 198 of file llcachename.cpp.
LLCacheName::Impl::Impl | ( | LLMessageSystem * | msg | ) |
Definition at line 261 of file llcachename.cpp.
References _PREHASH_UUIDGroupNameReply, _PREHASH_UUIDGroupNameRequest, _PREHASH_UUIDNameReply, _PREHASH_UUIDNameRequest, handleUUIDGroupNameReply(), handleUUIDGroupNameRequest(), handleUUIDNameReply(), handleUUIDNameRequest(), mMsg, and LLMessageSystem::setHandlerFuncFast().
LLCacheName::Impl::~Impl | ( | ) |
void LLCacheName::Impl::processPendingAsks | ( | ) |
Definition at line 724 of file llcachename.cpp.
References _PREHASH_UUIDGroupNameRequest, _PREHASH_UUIDNameRequest, mAskGroupQueue, mAskNameQueue, and sendRequest().
Referenced by LLCacheName::processPending().
void LLCacheName::Impl::processPendingReplies | ( | ) |
Definition at line 732 of file llcachename.cpp.
References FALSE, get_ptr_in_map(), PendingReply::isDone(), mCache, LLCacheNameEntry::mFirstName, LLCacheNameEntry::mGroupName, LLCacheNameEntry::mIsGroup, LLCacheNameEntry::mLastName, mMsg, mReplyQueue, ReplySender::send(), and TRUE.
Referenced by LLCacheName::processPending().
void LLCacheName::Impl::sendRequest | ( | const char * | msg_name, | |
const AskQueue & | queue | |||
) |
Definition at line 781 of file llcachename.cpp.
References _PREHASH_ID, _PREHASH_UUIDNameBlock, LLMessageSystem::addUUIDFast(), LLMessageSystem::isSendFullFast(), mMsg, mUpstreamHost, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().
Referenced by processPendingAsks().
bool LLCacheName::Impl::isRequestPending | ( | const LLUUID & | id | ) |
Definition at line 827 of file llcachename.cpp.
References mPendingQueue, NULL, and PENDING_TIMEOUT_SECS.
Referenced by LLCacheName::get(), LLCacheName::getGroupName(), LLCacheName::getName(), and processUUIDRequest().
void LLCacheName::Impl::processUUIDRequest | ( | LLMessageSystem * | msg, | |
bool | isGroup | |||
) |
Definition at line 844 of file llcachename.cpp.
References _PREHASH_ID, _PREHASH_UUIDNameBlock, get_ptr_in_map(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getSender(), LLMessageSystem::getUUIDFast(), i, LLHost::isOk(), isRequestPending(), llendl, llwarns, mAskGroupQueue, mAskNameQueue, mCache, LLCacheNameEntry::mIsGroup, mReplyQueue, mUpstreamHost, S32, and ReplySender::send().
void LLCacheName::Impl::processUUIDReply | ( | LLMessageSystem * | msg, | |
bool | isGroup | |||
) |
Definition at line 900 of file llcachename.cpp.
References _PREHASH_FirstName, _PREHASH_GroupName, _PREHASH_ID, _PREHASH_LastName, _PREHASH_UUIDNameBlock, DB_FIRST_NAME_BUF_SIZE, DB_GROUP_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, get_ptr_in_map(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), i, mCache, LLCacheNameEntry::mCreateTime, LLCacheNameEntry::mFirstName, LLCacheNameEntry::mGroupName, LLCacheNameEntry::mIsGroup, LLCacheNameEntry::mLastName, mPendingQueue, notifyObservers(), NULL, S32, and TRUE.
void LLCacheName::Impl::handleUUIDNameRequest | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
Definition at line 950 of file llcachename.cpp.
Referenced by Impl().
void LLCacheName::Impl::handleUUIDNameReply | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
Definition at line 945 of file llcachename.cpp.
Referenced by Impl().
void LLCacheName::Impl::handleUUIDGroupNameRequest | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
Definition at line 955 of file llcachename.cpp.
Referenced by Impl().
void LLCacheName::Impl::handleUUIDGroupNameReply | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
Definition at line 960 of file llcachename.cpp.
Referenced by Impl().
void LLCacheName::Impl::notifyObservers | ( | const LLUUID & | id, | |
const char * | first, | |||
const char * | last, | |||
BOOL | group | |||
) |
Definition at line 815 of file llcachename.cpp.
References i, mObservers, and NULL.
Referenced by processUUIDReply().
Definition at line 201 of file llcachename.cpp.
Referenced by Impl(), processPendingReplies(), and sendRequest().
Definition at line 202 of file llcachename.cpp.
Referenced by LLCacheName::processPending(), processUUIDRequest(), sendRequest(), and LLCacheName::setUpstream().
Definition at line 204 of file llcachename.cpp.
Referenced by LLCacheName::deleteEntriesOlderThan(), LLCacheName::dump(), LLCacheName::dumpStats(), LLCacheName::exportFile(), LLCacheName::get(), LLCacheName::getGroupName(), LLCacheName::getName(), LLCacheName::importFile(), processPendingReplies(), processUUIDReply(), processUUIDRequest(), and ~Impl().
Definition at line 207 of file llcachename.cpp.
Referenced by LLCacheName::dumpStats(), LLCacheName::get(), LLCacheName::getName(), processPendingAsks(), and processUUIDRequest().
Definition at line 208 of file llcachename.cpp.
Referenced by LLCacheName::dumpStats(), LLCacheName::get(), LLCacheName::getGroupName(), processPendingAsks(), and processUUIDRequest().
Definition at line 211 of file llcachename.cpp.
Referenced by LLCacheName::deleteEntriesOlderThan(), LLCacheName::dumpStats(), isRequestPending(), and processUUIDReply().
Definition at line 214 of file llcachename.cpp.
Referenced by LLCacheName::cancelCallback(), LLCacheName::dumpStats(), LLCacheName::get(), processPendingReplies(), and processUUIDRequest().
Definition at line 217 of file llcachename.cpp.
Referenced by LLCacheName::addObserver(), LLCacheName::dumpStats(), notifyObservers(), and LLCacheName::removeObserver().