OsGetAgentIP

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added permissions and delay information)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=Severe
 
|threat_level=Severe
 +
|permissions=true
 +
|delay=0
 
|function_syntax=string osGetAgentIP(key uuid);
 
|function_syntax=string osGetAgentIP(key uuid);
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
Line 29: Line 31:
  
 
Unknown what is returned for IPv6.
 
Unknown what is returned for IPv6.
 +
 +
'''osGetAgentIP''' is always restricted to Administrators
 
|
 
|
 
}}
 
}}

Revision as of 07:52, 25 October 2017

string osGetAgentIP(key uuid);
Requires: key uuid of agent to get IP address for.

Returns: string representing the IP address returned.

Possible Exceptions thrown:

System.Exception: OSSL Runtime Error: osGetAgentIP permission denied.  Allowed threat level is VeryLow but function threat level is High.

Notes: Unknown if this function requires a valid Detect event such as touch or collision.

Unknown what is returned for IPv6.

osGetAgentIP is always restricted to Administrators

Threat Level Severe
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
//
// Example of osGetAgentIP
//
default
{
  state_entry()
  {
     // Demo-Script 
  }
  touch_start(integer total_number)
  {
     llSay (0, "Your IP is : "+ osGetAgentIP(llDetectedKey(0)));
  }
}
Personal tools
General
About This Wiki