#include <llviewercommunication.h>
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 |
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.
LLViewerCircuit::LLViewerCircuit | ( | U32 | channel | ) | [inline] |
Definition at line 46 of file llviewercommunication.h.
LLViewerCircuit::LLViewerCircuit | ( | ) | [inline] |
Definition at line 47 of file llviewercommunication.h.
U32 LLViewerCircuit::getChannel | ( | ) | const [inline] |
Returns the chat channel the object requested.
Definition at line 52 of file llviewercommunication.h.
References mChannel.
Sends a reply to the object that made the request.
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().
U32 LLViewerCircuit::mChannel [protected] |