[Opensim-users] llOpenRemoteDataChannel

Clive Gould cliveg at gmail.com
Fri Oct 30 08:17:03 UTC 2009


I need to use XML-RPC as I have tried the alternative approach using
llRequestURL() and llHTTPResponse, which does not yet work in OpenSim.

The URL generated by the function llRequestURL() is not externally
accessible as it does not contain the complete hostname of the server
i.e. AviScan: URL:
http://standbyvle:9000/lslhttp/0f4308ef-5bda-4067-99aa-8139a8729cda/

To work the URL would need to contain standbyvle.bromley.ac.uk:9000 etc

Also I gather from Mantis there is a severe OpenSim bug associated
with the llHTTPResponse function at the moment.

Does anyone have a working OpenSim XML-RPC LSL script & server side
PHP script they could let me have to try???

Thanks very much

Clive


On Fri, Oct 30, 2009 at 6:41 AM, Clive Gould <cliveg at gmail.com> wrote:
> Hi
>
> Thanks for the replies.
>
> How do I modify a script so that it sends the calls to the region's
> remote data port on 20800 instead of a central service?
>
> llOpenRemoteDataChannel(); does not appear to accept any parameters
> according to the SL Wiki.
>
> The relevant code excerpts from my working SL script are below:
>
>  state_entry()
>    {
>        llOpenRemoteDataChannel();
>    }
>
>
>    remote_data(integer type, key channel, key message_id, string
> sender, integer ival, string sval)
>    {
>         if (type == REMOTE_DATA_CHANNEL)
>         {
>             string data = "lslkey=" + (string)channel + "&" +
> "objectkey=" + ObjectKey + "&" + "region=" + Region + ":" + Position;
>             key http =
> llHTTPRequest("http://cd.bromley.ac.uk/clive/register.php?" +
> data,[HTTP_METHOD,"GET"],"");
>          }
>         if (type == REMOTE_DATA_REQUEST)
>         {
>            llRemoteDataReply(channel,NULL_KEY,AviString,AviNumber);
>            SValue = sval;
>         }
>
>    }
>
> Any help very much appreciated as I'd like to get this working so I
> can use OpenSim instead of SL with my HE students.
>
> Thanks :)
>
> Clive
>
>
> On Fri, Oct 30, 2009 at 6:33 AM, Clive Gould <cliveg at gmail.com> wrote:
>> XML-RPC works fine in OpenSim. There is no packaged central gateway for the
>> incoming connections, but the regions handle it fine. Any SL scripts would
>> have to be altered to send the calls to the region's remote data port
>> instead of a central service.
>>
>> On Thu, Oct 29, 2009 at 9:32 AM, Tim Allen <flipper at peregrinesalon.com>wrote:
>>
>>> As far as I know, XML-RPC functions are not supported in OpenSim...
>>> and they will eventually be phased out in Second Life.
>>>
>>> XML-RPC requires a centralized server in Second Life, and functions
>>> are being phased out in favor of http functionality which is available
>>> at the sim level... and much more reliable. There was a good six-month
>>> period where XML-RPC services in SL were, at best, a 50/50 shot of
>>> actually working.
>>>
>>> While I'm not sure of the status of HTTP in OpenSim, see here for what
>>> you want to use in SL:
>>> http://wiki.secondlife.com/wiki/LSL_http_server
>>>
>>> Regards,
>>>
>>> -Tim / FlipperPA
>>>
>>> On Thu, Oct 29, 2009 at 9:27 AM, Clive Gould <cliveg at gmail.com> wrote:
>>> > Hi
>>> >
>>> > Does anyone know if the llOpenRemoteDataChannel function works
>>> > properly with OpenSim 0.6.7?
>>> >
>>> > I am trying to implement an in-world scripted avatar scanner that
>>> > reports to an external Web server.
>>> >
>>> > It works fine in SL, but I cannot seem to get it to work in OpenSim
>>> >
>>> > Any ideas?
>>> >
>>> > Thanks
>>> >
>>> > Clive
>>
>



More information about the Opensim-users mailing list