llviewercommunication.cpp File Reference

LLViewerCommunication implementation. More...

#include "llviewerprecompiledheaders.h"
#include "llviewercommunication.h"
#include "llviewermessage.h"
#include "llagent.h"
#include "llviewerstats.h"
#include "llchat.h"
#include <vector>
#include <string.h>

Include dependency graph for llviewercommunication.cpp:

Go to the source code of this file.

Functions

std::vector< LLStringtokenize (LLString text, U32 max_tokens=0)
void protocol_handler (LLString &data, LLViewerCircuit &circuit, void *userdata)

Variables

const LLString DELIMITER = "$"
const LLString MAGIC_WORD = "VwrComm"
const LLString VERSION = "0"
const LLString VIEWER_EXTENSION = "DaleGlass.Viewer"
const U32 MAX_TOKENS = 3
const U32 OFF_MAGIC = 0
const U32 OFF_VERSION = 1
const U32 OFF_EXTENSION = 2
const U32 OFF_DATA = 3
LLViewerCommunicationgViewerCommunication = NULL


Detailed Description

LLViewerCommunication implementation.

Author:
Dale Glass
Copyright (c) 2005-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE.

Definition in file llviewercommunication.cpp.


Function Documentation

void protocol_handler ( LLString data,
LLViewerCircuit circuit,
void userdata 
)

Definition at line 105 of file llviewercommunication.cpp.

References lldebugs, llendl, llwarns, LLViewerCircuit::sendReply(), and tokenize().

Referenced by LLViewerCommunication::LLViewerCommunication().

std::vector<LLString> tokenize ( LLString  text,
U32  max_tokens = 0 
)

Definition at line 73 of file llviewercommunication.cpp.

References count, DELIMITER, lldebugs, llendl, and llinfos.


Variable Documentation

const LLString DELIMITER = "$"

Definition at line 40 of file llviewercommunication.cpp.

LLViewerCommunication* gViewerCommunication = NULL

Definition at line 53 of file llviewercommunication.cpp.

Referenced by idle_startup(), LLFloaterNetwork2080::LLFloaterNetwork2080(), LLTrustNet::LLTrustNet(), process_chat_from_simulator(), and process_improved_im().

const LLString MAGIC_WORD = "VwrComm"

Definition at line 41 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::parse().

const U32 MAX_TOKENS = 3

Definition at line 46 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::parse().

const U32 OFF_DATA = 3

Definition at line 51 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::parse().

const U32 OFF_EXTENSION = 2

Definition at line 50 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::parse().

const U32 OFF_MAGIC = 0

Definition at line 48 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::parse().

const U32 OFF_VERSION = 1

Definition at line 49 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::parse().

const LLString VERSION = "0"

Definition at line 42 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::parse().

const LLString VIEWER_EXTENSION = "DaleGlass.Viewer"

Definition at line 44 of file llviewercommunication.cpp.

Referenced by LLViewerCommunication::LLViewerCommunication(), and LLViewerCommunication::parse().


Generated on Thu Jul 1 06:10:46 2010 for Second Life Viewer by  doxygen 1.4.7