Difference between revisions of "Capabilities"

From Second Life Wiki
Jump to navigation Jump to search
m (fix)
m (always up to date)
Line 23: Line 23:
* Do not rely on the form of a capability, other than it must be http: or https:.  Capabilities from the same source needn't point to the same host or port, and the path needn't start /cap.
* Do not rely on the form of a capability, other than it must be http: or https:.  Capabilities from the same source needn't point to the same host or port, and the path needn't start /cap.
* To get a list of the capabilities that the latest Second Life client is requesting, use this command:
* To get a list of the capabilities that the latest Second Life client is requesting, use this command:
<pre>wget -q -O - https://bitbucket.org/lindenlab/viewer-release/raw/827a910542a9af0a39b0ca03663c02e5c83869ea/indra/newview/llviewerregion.cpp | grep 'capabilityNames.append' | sed 's/^[ \t]*//;s/capabilityNames.append("//;s/");//'</pre>
<pre>wget -q -O - https://bitbucket.org/lindenlab/viewer-release/raw/tip/indra/newview/llviewerregion.cpp | grep 'capabilityNames.append' | sed 's/^[ \t]*//;s/capabilityNames.append("//;s/");//'</pre>




''See also'': [http://mrtopf.de/blog/secondlife/slga-capabilities-explained-technical Tao Takaishi's blog discussion of capabilities]
''See also'': [http://mrtopf.de/blog/secondlife/slga-capabilities-explained-technical Tao Takaishi's blog discussion of capabilities]

Revision as of 13:49, 4 September 2015

The viewer (and other client applications) can request capabilities from the simulators to gain access to certain features.

  • Map from public URL to private URL
  • Cap set <map><key>Asset upload</key>
    <uri>URI1</uri>
    <key>Seed capability</key>
    <uri>URI2</uri>
    </map>
  • Viewer knows public URL
  • Internally, backbone stores both public and private URL


Flow for getting capabilities

  • Viewer contacts login server requesting a particular capability
  • Login server contacts sim
  • Sim contacts backbone, sending a private uri corresponding to an action or service
  • Backbone generates and returns a public uri corresponding to the private uri

Notes:

  • Do not rely on the form of a capability, other than it must be http: or https:. Capabilities from the same source needn't point to the same host or port, and the path needn't start /cap.
  • To get a list of the capabilities that the latest Second Life client is requesting, use this command:
wget -q -O - https://bitbucket.org/lindenlab/viewer-release/raw/tip/indra/newview/llviewerregion.cpp | grep 'capabilityNames.append' | sed 's/^[ \t]*//;s/capabilityNames.append("//;s/");//'


See also: Tao Takaishi's blog discussion of capabilities