Fixed web browser thanks to ArminW/Imprudence
This commit is contained in:
18
indra/llplugin/llpluginmessagepipe.h
Normal file → Executable file
18
indra/llplugin/llpluginmessagepipe.h
Normal file → Executable file
@@ -2,9 +2,10 @@
|
||||
* @file llpluginmessagepipe.h
|
||||
* @brief Classes that implement connections from the plugin system to pipes/pumps.
|
||||
*
|
||||
* @cond
|
||||
* $LicenseInfo:firstyear=2008&license=viewergpl$
|
||||
*
|
||||
* Copyright (c) 2008-2009, Linden Research, Inc.
|
||||
* Copyright (c) 2008-2010, Linden Research, Inc.
|
||||
*
|
||||
* Second Life Viewer Source Code
|
||||
* The source code in this file ("Source Code") is provided by Linden Lab
|
||||
@@ -12,13 +13,13 @@
|
||||
* ("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://secondlifegrid.net/programs/open_source/licensing/gplv2
|
||||
* 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://secondlifegrid.net/programs/open_source/licensing/flossexception
|
||||
* 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,
|
||||
@@ -28,12 +29,15 @@
|
||||
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
|
||||
* COMPLETENESS OR PERFORMANCE.
|
||||
* $/LicenseInfo$
|
||||
*
|
||||
* @endcond
|
||||
*/
|
||||
|
||||
#ifndef LL_LLPLUGINMESSAGEPIPE_H
|
||||
#define LL_LLPLUGINMESSAGEPIPE_H
|
||||
|
||||
#include "lliosocket.h"
|
||||
#include "llthread.h"
|
||||
|
||||
class LLPluginMessagePipe;
|
||||
|
||||
@@ -50,7 +54,7 @@ public:
|
||||
virtual apr_status_t socketError(apr_status_t error);
|
||||
|
||||
// called from LLPluginMessagePipe to manage the connection with LLPluginMessagePipeOwner -- do not use!
|
||||
virtual void setMessagePipe(LLPluginMessagePipe *message_pipe) ;
|
||||
virtual void setMessagePipe(LLPluginMessagePipe *message_pipe);
|
||||
|
||||
protected:
|
||||
// returns false if writeMessageRaw() would drop the message
|
||||
@@ -75,14 +79,18 @@ public:
|
||||
void clearOwner(void);
|
||||
|
||||
bool pump(F64 timeout = 0.0f);
|
||||
|
||||
bool pumpOutput();
|
||||
bool pumpInput(F64 timeout = 0.0f);
|
||||
|
||||
protected:
|
||||
void processInput(void);
|
||||
|
||||
// used internally by pump()
|
||||
void setSocketTimeout(apr_interval_time_t timeout_usec);
|
||||
|
||||
LLMutex mInputMutex;
|
||||
std::string mInput;
|
||||
LLMutex mOutputMutex;
|
||||
std::string mOutput;
|
||||
|
||||
LLPluginMessagePipeOwner *mOwner;
|
||||
|
||||
Reference in New Issue
Block a user