llvoiceclient.cpp File Reference

Implementation of LLVoiceClient class which is the interface to the voice client process. More...

#include <boost/tokenizer.hpp>
#include "llviewerprecompiledheaders.h"
#include "llvoiceclient.h"
#include "llsdutil.h"
#include "llvoavatar.h"
#include "llbufferstream.h"
#include "llfile.h"
#include "expat/expat.h"
#include "llcallbacklist.h"
#include "llviewerregion.h"
#include "llviewernetwork.h"
#include "llfloateractivespeakers.h"
#include "llbase64.h"
#include "llviewercontrol.h"
#include "llkeyboard.h"
#include "viewer.h"
#include "llmutelist.h"
#include "llagent.h"
#include "llcachename.h"
#include "llimview.h"
#include "llimpanel.h"
#include "llparcel.h"
#include "llviewerparcelmgr.h"
#include "llfirstuse.h"
#include "llviewerwindow.h"
#include "apr-1/apr_base64.h"
#include "apr-1/apr_sha1.h"

Include dependency graph for llvoiceclient.cpp:

Go to the source code of this file.

Classes

class  LLViewerVoiceAccountProvisionResponder
class  LLVivoxProtocolParser
 This class helps construct new LLIOPipe specializations. More...
class  LLVoiceClientPrefsListener
class  LLVoiceClientMuteListObserver
class  LLVoiceClientCapResponder
class  LLViewerParcelVoiceInfo
class  LLViewerRequiredVoiceVersion

Defines

#define AGNI_LINDENS_ONLY_CHANNEL   "SL"
#define CASE(x)   case x: result = #x; break
#define CASE(x)   case x: result = #x; break

Functions

static bool isGatewayRunning ()
static void killGateway ()

Variables

static bool sConnectingToAgni = false
const F32 SPEAKING_TIMEOUT = 1.f
const int VOICE_MAJOR_VERSION = 1
const int VOICE_MINOR_VERSION = 0
LLVoiceClientgVoiceClient = NULL
const F32 CONNECT_THROTTLE_SECONDS = 1.0f
const F32 UPDATE_THROTTLE_SECONDS = 0.1f
const F32 LOGIN_RETRY_SECONDS = 10.0f
const int MAX_LOGIN_RETRIES = 12
static LLVoiceClientPrefsListener voice_prefs_listener
static LLVoiceClientMuteListObserver mutelist_listener
static bool sMuteListListener_listening = false
static pid_t sGatewayPID = 0
LLHTTPRegistration< LLViewerParcelVoiceInfogHTTPRegistrationMessageParcelVoiceInfo ("/message/ParcelVoiceInfo")
LLHTTPRegistration< LLViewerRequiredVoiceVersiongHTTPRegistrationMessageRequiredVoiceVersion ("/message/RequiredVoiceVersion")


Detailed Description

Implementation of LLVoiceClient class which is the interface to the voice client process.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-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. $/LicenseInfo$

Definition in file llvoiceclient.cpp.


Define Documentation

#define AGNI_LINDENS_ONLY_CHANNEL   "SL"

Definition at line 69 of file llvoiceclient.cpp.

#define CASE ( x   )     case x: result = #x; break

#define CASE ( x   )     case x: result = #x; break

Referenced by LLVoiceClientStatusObserver::status2string().


Function Documentation

static bool isGatewayRunning (  )  [static]

Definition at line 792 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().

static void killGateway (  )  [static]

Definition at line 806 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().


Variable Documentation

const F32 CONNECT_THROTTLE_SECONDS = 1.0f

Definition at line 81 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().

LLHTTPRegistration<LLViewerParcelVoiceInfo> gHTTPRegistrationMessageParcelVoiceInfo("/message/ParcelVoiceInfo")

LLHTTPRegistration<LLViewerRequiredVoiceVersion> gHTTPRegistrationMessageRequiredVoiceVersion("/message/RequiredVoiceVersion")

LLVoiceClient* gVoiceClient = NULL

Definition at line 78 of file llvoiceclient.cpp.

Referenced by audio_update_volume(), LLVoiceRemoteCtrl::draw(), LLFloaterIMPanel::draw(), LLPanelDeviceSettings::draw(), LLVivoxProtocolParser::EndTag(), LLViewerVoiceAccountProvisionResponder::error(), LLVoiceClientPrefsListener::handleEvent(), LLViewerWindow::handleMiddleMouseDown(), LLViewerWindow::handleMiddleMouseUp(), LLViewerWindow::handleTranslatedKeyDown(), LLViewerWindow::handleTranslatedKeyUp(), idle_startup(), LLVOAvatar::idleUpdate(), LLIMMgr::inviteUserResponse(), LLVOAvatar::LLVOAvatar(), LLVoiceClient::LLVoiceClient(), LLVoiceClient::onAvatarNameLookup(), LLVoiceRemoteCtrl::onBtnTalkClicked(), LLVoiceRemoteCtrl::onBtnTalkHeld(), LLVoiceRemoteCtrl::onBtnTalkReleased(), LLVoiceClientMuteListObserver::onChange(), LLPanelDeviceSettings::onClose(), LLPanelDeviceSettings::onOpen(), LLFloaterIMPanel::onVolumeChange(), LLPanelActiveSpeakers::onVolumeChange(), LLViewerRequiredVoiceVersion::post(), LLViewerParcelVoiceInfo::post(), LLVivoxProtocolParser::process_impl(), LLVivoxProtocolParser::processResponse(), LLStatusBar::refresh(), LLPanelDeviceSettings::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), LLVoiceClientCapResponder::result(), LLViewerVoiceAccountProvisionResponder::result(), send_logout_request(), LLVivoxProtocolParser::StartTag(), LLVoiceClient::terminate(), LLSpeakerMgr::update(), LLAgent::updateCamera(), LLVOAvatar::updateCharacter(), LLSpeakerMgr::updateSpeakerList(), and LLVoiceChannel::~LLVoiceChannel().

const F32 LOGIN_RETRY_SECONDS = 10.0f

Definition at line 86 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().

const int MAX_LOGIN_RETRIES = 12

Definition at line 87 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().

LLVoiceClientMuteListObserver mutelist_listener [static]

Definition at line 711 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().

bool sConnectingToAgni = false [static]

Definition at line 70 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::setVivoxDebugServerName(), and LLVoiceClient::userAuthorized().

pid_t sGatewayPID = 0 [static]

Definition at line 791 of file llvoiceclient.cpp.

bool sMuteListListener_listening = false [static]

Definition at line 712 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().

const F32 SPEAKING_TIMEOUT = 1.f

Definition at line 73 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::getIsSpeaking().

const F32 UPDATE_THROTTLE_SECONDS = 0.1f

Definition at line 84 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::stateMachine().

const int VOICE_MAJOR_VERSION = 1

Definition at line 75 of file llvoiceclient.cpp.

Referenced by LLViewerRequiredVoiceVersion::post().

const int VOICE_MINOR_VERSION = 0

Definition at line 76 of file llvoiceclient.cpp.

LLVoiceClientPrefsListener voice_prefs_listener [static]

Definition at line 705 of file llvoiceclient.cpp.

Referenced by LLVoiceClient::LLVoiceClient().


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