[sldev] Generic LSL->Client Comms
Argent Stonecutter
secret.argent at gmail.com
Tue Feb 27 07:21:19 PST 2007
Dale Glass's hack is really the only way to do it without LL support.
Dale: ever thought about taking your code and combining it with side-
chat on a well known port to let people start writing scripts that
talk to LSL directly, now, without waiting for an internal plugin
architecture?
EG, from tcl:
set sock [socket localhost 1337]
puts $sock "MyName,1.0,1331"
Now whatever I write to "sock" goes to chat on channel 1331, and when
any program sends "$VwrComm$1.0$Myname$Data" then "Data" gets written
back to me.
For security purposes, how about this?
$VwrComm$CHANNEL$VERSION$COMPONENT$data"
Where CHANNEL has to match the channel the original message was sent on.
This would at least allow you to use the "secret channel number"
technique to prevent scripted objects around you impersonating
responses. It's not the greatest, but it's what SL already depends on
in many many places so it's as good as what we already use.
More information about the SLDev
mailing list