LLViewerCircuit Class Reference

Viewer/LSL script communication circuit This object describes a connection between the viewer and an object. More...

#include <llviewercommunication.h>

List of all members.

Public Member Functions

 LLViewerCircuit (U32 channel)
 LLViewerCircuit ()
U32 getChannel () const
 Returns the chat channel the object requested.
void sendReply (const LLString &data)
 Sends a reply to the object that made the request.

Protected Attributes

U32 mChannel


Detailed Description

Viewer/LSL script communication circuit This object describes a connection between the viewer and an object.

When an object sends a message to the viewer, the LLViewerCommunication class calls the registered callback, and passes a reference to this object so that it can reply to the request.

Definition at line 43 of file llviewercommunication.h.


Constructor & Destructor Documentation

LLViewerCircuit::LLViewerCircuit ( U32  channel  )  [inline]

Definition at line 46 of file llviewercommunication.h.

LLViewerCircuit::LLViewerCircuit (  )  [inline]

Definition at line 47 of file llviewercommunication.h.


Member Function Documentation

U32 LLViewerCircuit::getChannel (  )  const [inline]

Returns the chat channel the object requested.

Definition at line 52 of file llviewercommunication.h.

References mChannel.

void LLViewerCircuit::sendReply ( const LLString data  ) 

Sends a reply to the object that made the request.

Parameters:
data Text to send

Definition at line 55 of file llviewercommunication.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ChatData, _PREHASH_ChatFromViewer, _PREHASH_Message, _PREHASH_SessionID, _PREHASH_Type, LLMessageSystem::addS32(), LLMessageSystem::addStringFast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), CHAT_TYPE_WHISPER, gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, gViewerStats, LLViewerStats::incStat(), mChannel, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLAgent::sendReliableMessage(), and LLViewerStats::ST_CHAT_COUNT.

Referenced by LLTrustNet::processRequests(), protocol_handler(), and LLFloaterNetwork2080::viewerCommCallback().


Member Data Documentation

U32 LLViewerCircuit::mChannel [protected]

Definition at line 60 of file llviewercommunication.h.

Referenced by getChannel(), and sendReply().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:57 2010 for Second Life Viewer by  doxygen 1.4.7