OsGetAgentIP
From OpenSimulator
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
− | {| | + | {{osslfunc| |
− | + | threat_level = High | |
− | | | + | | |
− | + | function_syntax = <source lang="lsl"> | |
− | + | ||
− | + | ||
− | + | ||
string OsGetAgentIP(key uuid); | string OsGetAgentIP(key uuid); | ||
</source> | </source> | ||
− | | | + | | |
− | + | 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. | ||
− | + | | | |
− | + | }} | |
− | + |
Revision as of 14: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. |