I need to send a list from one object to another. Best way I can think of is to email. I can either send from object to object or send as http_request to my web server then back in to SL to the object. Either way is good with me only http will be faster.
Now the bit of code I have so far is as follows;
CODE
//Maximum characters allowed to be sent
integer gMax = 1000;
//Turn the product list in to a string
string Raw = llList2CSV(gProdList);
//Get the stringlength
integer Prodnum = llStringLength(Raw);
integer i;
for(i=0;i<Prodnum;i = i + gMax)
{
integer Start = i;
integer End = i + gMax;
//split the string
string Split = llGetSubString(Raw, Start, End);
//email the above string
}
//send message saying end of string
Untested code.
Obviously if I send object to object email I have to decrease the Max string size because all the rubbish it will send with it.
Anyways. Is this method the best?
The way I was thinking of putting it together at the other end was to collect it all as 1 big string then convert back to a list as I will be sending through a CSV BUT if my emails lag up then it will receive it in odd parts and then wont go back together properly.
Any ideas suggestion or even a dont bother would help a lot.
Thanks all.
- Alberrt