LlGetFreeURLs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Kireji Haiku (talk | contribs) m minor readability improvements |
||
| Line 9: | Line 9: | ||
|constants | |constants | ||
|examples= | |examples= | ||
This script will say the number of HTTP-In URLs | This script will say the number of currently available HTTP-In URLs left for the sim. | ||
< | <lsl> | ||
default | default | ||
{ | { | ||
touch_start(integer num_detected) | |||
{ | { | ||
integer | integer numberOfFreeURLs = llGetFreeURLs(); | ||
if( | if(numberOfFreeURLs) | ||
llSay(PUBLIC_CHANNEL, "There are " + (string)numberOfFreeURLs + " available HTTP-In URLs left for this sim."); | |||
else | else | ||
llSay(PUBLIC_CHANNEL, "WARNING: There are no HTTP-In URLs available anymore."); | |||
} | } | ||
} | } | ||
</ | </lsl> | ||
|helpers | |helpers | ||
|also_functions= | |also_functions= | ||
Revision as of 06:15, 6 October 2012
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetFreeURLs( );| 0.0 | Forced Delay |
| 10.0 | Energy |
Returns an integer that is the number of available URLs.
Examples
This script will say the number of currently available HTTP-In URLs left for the sim. <lsl> default {
touch_start(integer num_detected)
{
integer numberOfFreeURLs = llGetFreeURLs();
if(numberOfFreeURLs)
llSay(PUBLIC_CHANNEL, "There are " + (string)numberOfFreeURLs + " available HTTP-In URLs left for this sim.");
else
llSay(PUBLIC_CHANNEL, "WARNING: There are no HTTP-In URLs available anymore.");
}
}
</lsl>See Also
Functions
| • | llRequestURL | |||
| • | llRequestSecureURL | |||
| • | llReleaseURL | |||
| • | llHTTPResponse | |||
| • | llGetHTTPHeader |
Articles
| • | LSL http server |