Event | If triggered during the delay... |
touch_start
touch_end | it is only executed once after the delay. |
listen | it is executed the number of times it is triggered. |
link_message | it is executed the number of times it is triggered, up to the maximum event queue size (64) |
public class xmlrpctest { xmlrpctest() throws Exception { while (true) { Date currdate = new Date(); Date lastdate = new Date(); // code to initialize SecondLife XML-RPC connection while(true) { // code to send llRemoteData request with ival=42, sval="" lastdate = currdate; currdate = new Date(); System.out.println("Ping... " + (currdate.getTime() - lastdate.getTime())); // usually gives 3000-3100 } } }
key chan; default { state_entry() { llOpenRemoteDataChannel(); } remote_data(integer type, key channel, key msgid, string sender, integer ival, string sval) { if (type == REMOTE_DATA_CHANNEL) { llWhisper(0,"Channel is: " + (string)channel); chan = channel; } else if (type == REMOTE_DATA_REQUEST) { llRemoteDataReply(channel, msgid, "whee!", 27); } } state_exit() { llCloseRemoteDataChannel(chan); } }