OsGetAgentIP

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc|
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
threat_level = High
|- valign="top"
+
|
|'''Threat Level''' || High
+
function_syntax = <source lang="lsl">
 
+
|- valign="top"
+
|'''Function Syntax''' || <source lang="lsl">
+
 
string OsGetAgentIP(key uuid);
 
string OsGetAgentIP(key uuid);
 
</source>
 
</source>
|- valign="top"
+
|
|'''Example(s)||<source lang="lsl">
+
ossl_example = <source lang="lsl">
 
//
 
//
 
// Example of osGetAgentIP
 
// Example of osGetAgentIP
Line 25: Line 22:
 
}
 
}
 
</source>
 
</source>
 
+
|  
|}
+
additional_info = Requires: ''key uuid'' of agent to get IP address for.
Requires: ''key uuid'' of agent to get IP address for.
+
  
 
Returns: string representing the IP address returned.
 
Returns: string representing the IP address returned.
Line 38: Line 34:
  
 
Unknown what is returned for IPv6.
 
Unknown what is returned for IPv6.
 
+
|
 
+
}}
[[Category:OSSL Functions]]
+

Revision as of 15:35, 12 June 2011

string OsGetAgentIP(key uuid);
No descriptions provided
Threat Level High
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//
// Example of osGetAgentIP
//
default
{
  state_entry()
  {
     // Demo-Script 
  }
  touch_start(integer total_number)
  {
     llSay (0, "Your IP is : "+ osGetAgentIP(llDetectedKey(0)));
  }
}
Notes
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.

Personal tools
General
About This Wiki