[opensource-dev] Landmarks on login?

Brandon Husbands xotmid at gmail.com
Thu Sep 16 15:12:35 PDT 2010


heres the magic

landmark.cpp
line 170 starts

void LLLandmark::requestRegionHandle(
    LLMessageSystem* msg,
    const LLHost& upstream_host,
    const LLUUID& region_id,
    region_handle_callback_t callback)
{
    if(region_id.isNull())
    {
        // don't bother with checking - it's 0.
        lldebugs << "requestRegionHandle: null" << llendl;
        if(callback)
        {
            const U64 U64_ZERO = 0;
            callback(region_id, U64_ZERO);
        }
    }
    else
    {
        if(region_id == mLocalRegion.first)
        {
            lldebugs << "requestRegionHandle: local" << llendl;
            if(callback)
            {
                callback(region_id, mLocalRegion.second);
            }
        }
        else
        {
            region_map_t::iterator it = mRegions.find(region_id);
            if(it == mRegions.end())
            {
                lldebugs << "requestRegionHandle: upstream" << llendl;
                if(callback)
                {
                    region_callback_map_t::value_type vt(region_id,
callback);
                    sRegionCallbackMap.insert(vt);
                }
                lldebugs << "Landmark requesting information about: "
                         << region_id << llendl;
                msg->newMessage("RegionHandleRequest");
                msg->nextBlock("RequestBlock");
                msg->addUUID("RegionID", region_id);
                msg->sendReliable(upstream_host);
            }
            else if(callback)
            {
                // we have the answer locally - just call the callack.
                lldebugs << "requestRegionHandle: ready" << llendl;
                callback(region_id, (*it).second.mRegionHandle);
            }
        }
    }

    // As good a place as any to expire old entries.
    expireOldEntries();
}

On Thu, Sep 16, 2010 at 5:06 PM, Kent Quirk (Q Linden) <q at lindenlab.com>wrote:

> Have you got a JIRA, or better yet, a pointer to the code in question?
> Sounds like it's worth investigating.
>
>        Q
>
> On Sep 16, 2010, at 5:51 PM, Brandon Husbands wrote:
>
> >
> > viewer 2, Why ohh why on log in is it grabbing all landmarks then getting
> region handles for them?
> >
> > --
> >
> -------------------------------------------------------------------------------------------------------------------------------
> > This email is a private and confidential communication. Any use of email
> may be subject to the laws and regulations of the United States. You may not
> Repost, Distribute nor reproduce any content of this message.
> >
> -------------------------------------------------------------------------------------------------------------------------------
> >
> -------------------------------------------------------------------------------------------------------------------------------
> > _______________________________________________
> > Policies and (un)subscribe information available here:
> > http://wiki.secondlife.com/wiki/OpenSource-Dev
> > Please read the policies before posting to keep unmoderated posting
> privileges
>
>


-- 
-------------------------------------------------------------------------------------------------------------------------------
This email is a private and confidential communication. Any use of email may
be subject to the laws and regulations of the United States. You may not
Repost, Distribute nor reproduce any content of this message.
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20100916/0920d0f2/attachment.htm 


More information about the opensource-dev mailing list