mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Formatting cleanup.
This commit is contained in:
@@ -40,25 +40,25 @@ using OpenSim.Region.Environment.Scenes;
|
||||
/*****************************************************
|
||||
*
|
||||
* ScriptsHttpRequests
|
||||
*
|
||||
*
|
||||
* Implements the llHttpRequest and http_response
|
||||
* callback.
|
||||
*
|
||||
*
|
||||
* Some stuff was already in LSLLongCmdHandler, and then
|
||||
* there was this file with a stub class in it. So,
|
||||
* I am moving some of the objects and functions out of
|
||||
* LSLLongCmdHandler, such as the HttpRequestClass, the
|
||||
* start and stop methods, and setting up pending and
|
||||
* completed queues. These are processed in the
|
||||
* LSLLongCmdHandler polling loop. Similiar to the
|
||||
* start and stop methods, and setting up pending and
|
||||
* completed queues. These are processed in the
|
||||
* LSLLongCmdHandler polling loop. Similiar to the
|
||||
* XMLRPCModule, since that seems to work.
|
||||
*
|
||||
*
|
||||
* //TODO
|
||||
*
|
||||
*
|
||||
* This probably needs some throttling mechanism but
|
||||
* its wide open right now. This applies to both
|
||||
* number of requests and data volume.
|
||||
*
|
||||
*
|
||||
* Linden puts all kinds of header fields in the requests.
|
||||
* Not doing any of that:
|
||||
* User-Agent
|
||||
@@ -71,13 +71,13 @@ using OpenSim.Region.Environment.Scenes;
|
||||
* X-SecondLife-Local-Rotation
|
||||
* X-SecondLife-Owner-Name
|
||||
* X-SecondLife-Owner-Key
|
||||
*
|
||||
*
|
||||
* HTTPS support
|
||||
*
|
||||
*
|
||||
* Configurable timeout?
|
||||
* Configurable max repsonse size?
|
||||
* Configurable
|
||||
*
|
||||
*
|
||||
* **************************************************/
|
||||
|
||||
namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
|
||||
|
||||
@@ -226,7 +226,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender
|
||||
foreach (string line in lines)
|
||||
{
|
||||
string nextLine = line.Trim();
|
||||
//replace with switch, or even better, do some proper parsing
|
||||
//replace with switch, or even better, do some proper parsing
|
||||
if (nextLine.StartsWith("MoveTo"))
|
||||
{
|
||||
float x = 0;
|
||||
|
||||
@@ -37,25 +37,25 @@ using OpenSim.Region.Environment.Scenes;
|
||||
/*****************************************************
|
||||
*
|
||||
* WorldCommModule
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* Holding place for world comms - basically llListen
|
||||
* function implementation.
|
||||
*
|
||||
*
|
||||
* lLListen(integer channel, string name, key id, string msg)
|
||||
* The name, id, and msg arguments specify the filtering
|
||||
* criteria. You can pass the empty string
|
||||
* (or NULL_KEY for id) for these to set a completely
|
||||
* open filter; this causes the listen() event handler to be
|
||||
* invoked for all chat on the channel. To listen only
|
||||
* for chat spoken by a specific object or avatar,
|
||||
* specify the name and/or id arguments. To listen
|
||||
* only for a specific command, specify the
|
||||
* (case-sensitive) msg argument. If msg is not empty,
|
||||
* listener will only hear strings which are exactly equal
|
||||
* The name, id, and msg arguments specify the filtering
|
||||
* criteria. You can pass the empty string
|
||||
* (or NULL_KEY for id) for these to set a completely
|
||||
* open filter; this causes the listen() event handler to be
|
||||
* invoked for all chat on the channel. To listen only
|
||||
* for chat spoken by a specific object or avatar,
|
||||
* specify the name and/or id arguments. To listen
|
||||
* only for a specific command, specify the
|
||||
* (case-sensitive) msg argument. If msg is not empty,
|
||||
* listener will only hear strings which are exactly equal
|
||||
* to msg. You can also use all the arguments to establish
|
||||
* the most restrictive filtering criteria.
|
||||
*
|
||||
*
|
||||
* It might be useful for each listener to maintain a message
|
||||
* digest, with a list of recent messages by UUID. This can
|
||||
* be used to prevent in-world repeater loops. However, the
|
||||
@@ -76,7 +76,7 @@ using OpenSim.Region.Environment.Scenes;
|
||||
* Might be actually easier to map the global handle into
|
||||
* script-local handle in the ScriptEngine. Not sure if its
|
||||
* worth the effort tho.
|
||||
*
|
||||
*
|
||||
* **************************************************/
|
||||
|
||||
namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
|
||||
@@ -317,9 +317,9 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
*
|
||||
*
|
||||
* Listener Stuff
|
||||
*
|
||||
*
|
||||
* *****************************************************************/
|
||||
|
||||
private void DeliverClientMessage(Object sender, ChatFromViewerArgs e)
|
||||
|
||||
@@ -43,12 +43,12 @@ using OpenSim.Region.Environment.Scenes;
|
||||
/*****************************************************
|
||||
*
|
||||
* XMLRPCModule
|
||||
*
|
||||
*
|
||||
* Module for accepting incoming communications from
|
||||
* external XMLRPC client and calling a remote data
|
||||
* procedure for a registered data channel/prim.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* 1. On module load, open a listener port
|
||||
* 2. Attach an XMLRPC handler
|
||||
* 3. When a request is received:
|
||||
@@ -59,18 +59,18 @@ using OpenSim.Region.Environment.Scenes;
|
||||
* 3.5 Return response to client caller
|
||||
* 3.6 If no response from llRemoteDataReply within
|
||||
* RemoteReplyScriptTimeout, generate script timeout fault
|
||||
*
|
||||
*
|
||||
* Prims in script must:
|
||||
* 1. Open a remote data channel
|
||||
* 1.1 Generate a channel ID
|
||||
* 1.2 Register primid,channelid pair with module
|
||||
* 2. Implement the remote data procedure handler
|
||||
*
|
||||
*
|
||||
* llOpenRemoteDataChannel
|
||||
* llRemoteDataReply
|
||||
* remote_data(integer type, key channel, key messageid, string sender, integer ival, string sval)
|
||||
* llCloseRemoteDataChannel
|
||||
*
|
||||
*
|
||||
* **************************************************/
|
||||
|
||||
namespace OpenSim.Region.Environment.Modules.Scripting.XMLRPC
|
||||
@@ -157,16 +157,16 @@ namespace OpenSim.Region.Environment.Modules.Scripting.XMLRPC
|
||||
|
||||
/**********************************************
|
||||
* OpenXMLRPCChannel
|
||||
*
|
||||
*
|
||||
* Generate a LLUUID channel key and add it and
|
||||
* the prim id to dictionary <channelUUID, primUUID>
|
||||
*
|
||||
*
|
||||
* First check if there is a channel assigned for
|
||||
* this itemID. If there is, then someone called
|
||||
* llOpenRemoteDataChannel twice. Just return the
|
||||
* original channel. Other option is to delete the
|
||||
* current channel and assign a new one.
|
||||
*
|
||||
*
|
||||
* ********************************************/
|
||||
|
||||
public LLUUID OpenXMLRPCChannel(uint localID, LLUUID itemID)
|
||||
@@ -224,9 +224,9 @@ namespace OpenSim.Region.Environment.Modules.Scripting.XMLRPC
|
||||
|
||||
/**********************************************
|
||||
* Remote Data Reply
|
||||
*
|
||||
*
|
||||
* Response to RPC message
|
||||
*
|
||||
*
|
||||
*********************************************/
|
||||
|
||||
public void RemoteDataReply(string channel, string message_id, string sdata, int idata)
|
||||
@@ -245,9 +245,9 @@ namespace OpenSim.Region.Environment.Modules.Scripting.XMLRPC
|
||||
|
||||
/**********************************************
|
||||
* CloseXMLRPCChannel
|
||||
*
|
||||
*
|
||||
* Remove channel from dictionary
|
||||
*
|
||||
*
|
||||
*********************************************/
|
||||
|
||||
public void CloseXMLRPCChannel(LLUUID channelKey)
|
||||
|
||||
Reference in New Issue
Block a user