OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
/// <summary>
/// Construct a client response detailing all the capabilities this server can provide.
/// </summary>
/// <param name="request"></param>
/// <param name="path"></param>
/// <param name="param"></param>
/// <param name="httpRequest">HTTP request header object</param>
/// <param name="httpResponse">HTTP response header object</param>
/// <returns></returns>
Construct a client response detailing all the capabilities this server can provide.
Construct a client response detailing all the capabilities this server can provide .
public string SeedCapRequest(string request, string path, string param,
                                  IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
        {
            if (!m_Scene.CheckClient(m_HostCapsObj.AgentID, httpRequest.RemoteIPEndPoint))
            {
                m_log.WarnFormat(
                    "[CAPS]: Unauthorized CAPS client {0} from {1}",
                    m_HostCapsObj.AgentID, httpRequest.RemoteIPEndPoint);
                return string.Empty;
            }
            OSDArray capsRequested = (OSDArray)OSDParser.DeserializeLLSDXml(request);
            List<string> validCaps = new List<string>();
            foreach (OSD c in capsRequested)
                validCaps.Add(c.AsString());
            string result = LLSDHelpers.SerialiseLLSDReply(m_HostCapsObj.GetCapsDetails(true, validCaps));
            return result;
        }
public string SeedCapRequest ( string request , string path , string param , IOSHttpRequest httpRequest , IOSHttpResponse httpResponse ) { if ( ! m_Scene . CheckClient ( m_HostCapsObj . AgentID , httpRequest . RemoteIPEndPoint ) ) { m_log . WarnFormat ( " " , m_HostCapsObj . AgentID , httpRequest . RemoteIPEndPoint ) ; return string . Empty ; } OSDArray capsRequested = ( OSDArray ) OSDParser . DeserializeLLSDXml ( request ) ; List < string > validCaps = new List < string > ( ) ; foreach ( OSD c in capsRequested ) validCaps . Add ( c . AsString ( ) ) ; string result = LLSDHelpers . SerialiseLLSDReply ( m_HostCapsObj . GetCapsDetails ( true , validCaps ) ) ; return result ; }
Construct a client response detailing all the capabilities this server can provide.
Construct a client response detailing all the capabilities this server can provide .
//            m_log.DebugFormat( //                "[CAPS]: Received SEED caps request in {0} for agent {1}", m_regionName, m_HostCapsObj.AgentID); //m_log.DebugFormat("[CAPS] CapsRequest {0}", result);
None
request
string
None
path
string
None
param
string
None
httpRequest
IOSHttpRequest
HTTP request header object
HTTP request header object
httpResponse
IOSHttpResponse
HTTP response header object
HTTP response header object