User:fred Rookstown/llRequestDatashare

From Second Life Wiki
< User:Fred Rookstown
Revision as of 12:33, 7 June 2009 by Fred Rookstown (talk | contribs) (+ Some functions I'll be prototyping on OpenSim this summer.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: integer llRequestDatashare( key agent, string service_id, integer service_revision_req );

Attempts to open a datashare channel on the specified agent for the specified service, if available.
Returns an integer datashare resource pointer

• key agent Key of target agent
• string service_id Name of service to connect to
• integer service_revision_req Ensures that the service is at least this version before allowing the datashare to open.

Examples

<lsl> integer datashare; // Datashare pointer default {

   state_entry()
   {
       // Open a datashare with no service version check.
       datashare=llRequestDatashare(llGetOwner(),"Some Service",0);
   }

}

</lsl>

Deep Notes

Signature

//function integer llRequestDatashare( key agent, string service_id, integer service_revision_req );