Difference between revisions of "LlGetFreeURLs"

From Second Life Wiki
Jump to navigation Jump to search
m (minor readability improvements)
Line 9: Line 9:
|constants
|constants
|examples=
|examples=
This script will say the number of HTTP-In URLs Available
This script will say the number of currently available HTTP-In URLs left for the sim.
<LSL>
<lsl>
// Developed by: Pavcules Superior
// Developed on: December 2009
default
default
{
{
     state_entry()
     touch_start(integer num_detected)
     {
     {
         integer freeurls = llGetFreeURLs();
         integer numberOfFreeURLs = llGetFreeURLs();
   
 
         if(freeurls > 0)
         if(numberOfFreeURLs)
        {
             llSay(PUBLIC_CHANNEL,  "There are " + (string)numberOfFreeURLs + " available HTTP-In URLs left for this sim.");
             llOwnerSay( "There are " + (string)freeurls + " Available HTTP-In URLs" );
 
        }
         else
         else
        {
             llSay(PUBLIC_CHANNEL, "WARNING: There are no HTTP-In URLs available anymore.");
             llOwnerSay("WARNING: There is no available HTTP-In URLs that can be used.");
        }
     }
     }
}
}
</LSL>
</lsl>
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 07:15, 6 October 2012

Summary

Function: integer llGetFreeURLs( );

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

Deep Notes

History

Search JIRA for related Issues

Signature

function integer llGetFreeURLs();