OsGetAgentIP

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
string OsGetAgentIP(key uuid);
+
{|  width="100%" style="border: thin solid black"
 +
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 +
|- valign="top"
 +
|'''Threat Level''' || High
  
Requires: key <uuid> of agent to get IP address for.
+
|- valign="top"
 
+
|'''Function Syntax''' || <source lang="lsl">
Returns: string representing the IP address returned.
+
string OsGetAgentIP(key uuid);
 
+
</source>
Threat Level: High
+
|- valign="top"
 
+
|'''Example(s)||<source lang="lsl">
Exceptions thrown:
+
  System.Exception: OSSL Runtime Error: osGetAgentIP permission denied.  Allowed threat level is VeryLow but function threat level is High.
+
 
+
Example Usage:
+
<source lang="lsl">
+
 
//
 
//
 
// Example of osGetAgentIP
 
// Example of osGetAgentIP
Line 27: Line 25:
 
}
 
}
 
</source>
 
</source>
 +
 +
|}
 +
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:
 
Notes:
 
Unknown if this function requires a valid *Detect* event such as touch or collision.
 
Unknown if this function requires a valid *Detect* event such as touch or collision.
Line 33: Line 40:
  
  
 +
[[Category:OSSL Functions]]
 
[[Category:OSSL]]
 
[[Category:OSSL]]

Revision as of 16:13, 8 June 2011

OsGetAgentIP
Threat Level High
Function Syntax
string OsGetAgentIP(key uuid);
Example(s)
//
// Example of osGetAgentIP
//
default
{
  state_entry()
  {
     // Demo-Script 
  }
  touch_start(integer total_number)
  {
     llSay (0, "Your IP is : "+ osGetAgentIP(llDetectedKey(0)));
  }
}

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