Changeset 3331
- Timestamp:
- 01/30/10 13:19:55 (7 months ago)
- Location:
- Enterprise/branches/0075_TR_SCRIPTING/AppServer
- Files:
-
- 1 added
- 5 modified
-
I_ApplicationServer.hpp (modified) (1 diff)
-
I_Request.hpp (modified) (1 diff)
-
I_Response.hpp (modified) (1 diff)
-
scriptable_generic_service.hpp (added)
-
src/ApplicationServer.cpp (modified) (3 diffs)
-
src/ApplicationServer.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Enterprise/branches/0075_TR_SCRIPTING/AppServer/I_ApplicationServer.hpp
r3311 r3331 108 108 virtual void registerDefaultScriptEngine(pScriptEngine_type _pEngine) = 0; 109 109 110 /// Get the default script engine. 111 virtual pScriptEngine_type getDefaultScriptEngine() = 0; 112 110 113 /// Install multiple protocol services using the provided configuration. 111 114 /// The provided configuration should have zero or more <protocol/> entries which -
Enterprise/branches/0075_TR_SCRIPTING/AppServer/I_Request.hpp
r878 r3331 50 50 /// @{ 51 51 public: 52 virtual unsigned int getRequestId() const = 0; 52 53 /// @} 53 54 -
Enterprise/branches/0075_TR_SCRIPTING/AppServer/I_Response.hpp
r1493 r3331 50 50 /// @{ 51 51 public: 52 /// Get the message Id associated with the request 53 virtual unsigned int getRequestMessageId() const = 0; 52 54 /// @} 53 55 -
Enterprise/branches/0075_TR_SCRIPTING/AppServer/src/ApplicationServer.cpp
r3246 r3331 49 49 #include <Zen/Core/Scripting/I_ScriptableService.hpp> 50 50 51 #include <Zen/Enterprise/Networking/I_Endpoint.hpp> 52 #include <Zen/Enterprise/Networking/I_Address.hpp> 53 51 54 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 52 55 namespace Zen { … … 270 273 271 274 m_pScriptEngine = _pEngine; 275 } 276 277 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 278 ApplicationServer::pScriptEngine_type 279 ApplicationServer::getDefaultScriptEngine() 280 { 281 return m_pScriptEngine; 272 282 } 273 283 … … 743 753 ResourceLocation* pDestination = dynamic_cast<ResourceLocation*>(_pRequest->getDestinationLocation().get()); 744 754 755 // TODO: If _pRequest destination is not this server then the request is destined for 756 // another destination and it should be sent instead of dispatched. 757 std::cout << "Sending a request to " 758 << _pRequest->getDestinationEndpoint()->getAddress().toString() 759 << "/" 760 << pDestination->toString() 761 << std::endl; 762 745 763 if (pDestination != NULL) 746 764 { -
Enterprise/branches/0075_TR_SCRIPTING/AppServer/src/ApplicationServer.hpp
r3246 r3331 73 73 virtual void stop(); 74 74 virtual void registerDefaultScriptEngine(pScriptEngine_type _pEngine); 75 virtual pScriptEngine_type getDefaultScriptEngine(); 75 76 virtual void installProtocols(pConfig_type _pProtocolsConfig); 76 77 virtual void installProtocol(pProtocolService_type _pProtocolService, const std::string& _protocolName);
