[sldev] region handle from region name
Anna Gulaev
annagulaev at gmail.com
Mon Nov 26 14:24:06 PST 2007
I have region name. I want region handle. Someone said that was simple.
I gather it boils down to
gWorldMap->sendNamedRegionRequest(region_name);
that builds a message thusly:
msg->newMessageFast(_PREHASH_MapNameRequest);
msg->nextBlockFast(_PREHASH_AgentData);
msg->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
msg->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID());
msg->addU32Fast(_PREHASH_Flags, layer);
msg->addU32Fast(_PREHASH_EstateID, 0); // Filled in on sim
msg->addBOOLFast(_PREHASH_Godlike, FALSE); // Filled in on sim
msg->nextBlockFast(_PREHASH_NameData);
msg->addStringFast(_PREHASH_Name, region_name);
gAgent.sendReliableMessage();
which results in this:
gMessageSystem->sendReliable(mRegionp->getHost());
which sends a message without a callback.
Could someone please give me a clue where I might look for a response?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20071126/e923fd71/attachment.htm
More information about the SLDev
mailing list