LSL Wiki Mirror 10-5-2006: Communications

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::

Communications

These are functions and events that allow scripts to communicate with users, other scripts, and with scripts and programs running on computers outside SL. Depending on what you're trying to do, you may have some leeway when choosing which methods to use. When faced with a choice, these benchmarks can demonstrate the performance differences of one method over another.

Chat
llDialog
llListen
llListenControl
llListenRemove
llOwnerSay
llSay
llShout
llWhisper

Event: listen

Cryptography
llBase64ToString
llMD5String
llStringToBase64
llXorBase64StringsCorrect
llXorBase64Strings
llModPow

Email
llEmail
llGetNextEmail

Event: email

Instant Messaging
llInstantMessage

Link Messages
llMessageLinked

Event: link_message

Text
llSetSitText
llSetText
llSetTouchText

XML-RPC
llCloseRemoteDataChannel
llOpenRemoteDataChannel
llRemoteDataReply
llRemoteDataSetRegion
llSendRemoteData

Event: remote_data

HTTP
llHTTPRequest
llEscapeURL
llUnescapeURL
Event: http_response



Q: How do I know which method to use? This is complicated!
A: Consult the following chart of methods and who or what can recieve them:

Method Script Delay Object owner Other users Other objects Scripts in the same object Send to computers outside SL Receive from outside SL Comment
Chat: Whisper, Say, Shout No Yes Yes Yes No No No Must be within chat distance to be able to receive.
llOwnerSay No Yes No No No No No Owner must be in the same sim.
llDialog Create Yes Yes Yes No No No No Only the directed user can receive and they must be in the sim.
llDialog Response No Yes Yes Yes No No No Receiver must be within chat distance of where the dialog box was created.
Instant Messages Yes Yes Yes No No No No  
Link Messages No No No No Yes No No Only scripts contained within a given linked object may receive.
Email Yes No No Yes Yes Yes Yes link messages are better for intra-object communication.
XML-RPC No No No No No No Yes Only connections from an external computer to SL can be initiated.
HTTP No No No No No Yes No Only connections from SL to a non-Linden Lab server can be initiated.

There are also several alternatives to these methods of communication, but they have a limited number of uses.

Q: So I want my attachment to talk to me and only me. What should I use?
A: llOwnerSay. If you need it to silently communicate with another user, use llInstantMessage. Remember that you can use multiple communications methods in the same script.


Functions | Events | Chat | Email | XML-RPC
There are 2 comments on this page. [Display comments/form]