OsGetAgentIP

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: // // Example of osGetAgentIP // default { state_entry() { // Demo-Script } touch_start(integer total_number) { llSay (0, "Your IP is : "+ osGetAgentIP(llDetectedKey(0)));...)
 
(added implementation details)
Line 1: Line 1:
 +
string OsGetAgentIP(key uuid);
 +
 +
Requires: key <uuid> of agent to get IP address for.
 +
 +
Returns: string representing the IP address returned.
 +
 +
Threat Level: High
 +
 +
Exceptions thrown:
 +
  System.Exception: OSSL Runtime Error: osGetAgentIP permission denied.  Allowed threat level is VeryLow but function threat level is High.
 +
 +
Example Usage:
 
  //
 
  //
 
  // Example of osGetAgentIP
 
  // Example of osGetAgentIP
Line 13: Line 25:
 
   }
 
   }
 
  }
 
  }
 +
 +
Notes:
 +
Unknown if this function requires a valid *Detect* event such as touch or collision.
 +
 +
Unknown what is returned for IPv6.

Revision as of 20:46, 10 July 2010

string OsGetAgentIP(key uuid);

Requires: key <uuid> of agent to get IP address for.

Returns: string representing the IP address returned.

Threat Level: High

Exceptions thrown:

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

Example Usage:

//
// Example of osGetAgentIP
//
default
{
state_entry()
{
 // Demo-Script 
}
 touch_start(integer total_number)
 {
 llSay (0, "Your IP is : "+ osGetAgentIP(llDetectedKey(0)));
 }
}

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