User:fred Rookstown/llRequestDatashare

From Second Life Wiki
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

Search JIRA for related Issues

Signature

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