MCPcopy Create free account
hub / github.com/amule-project/amule / ProcessActionResponse

Function ProcessActionResponse

src/UPnPBase.cpp:219–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219static void ProcessActionResponse(
220 IXML_Document *RespDoc,
221 const std::string &actionName)
222{
223 std::ostringstream msg;
224 msg << "Response: ";
225 IXML_Element *root = IXML::Document::GetRootElement(RespDoc);
226 IXML_Element *child = IXML::Element::GetFirstChild(root);
227 if (child) {
228 while (child) {
229 const DOMString childTag = IXML::Element::GetTag(child);
230 std::string childValue = IXML::Element::GetTextValue(child);
231 msg << "\n " <<
232 childTag << "='" <<
233 childValue << "'";
234 child = IXML::Element::GetNextSibling(child);
235 }
236 } else {
237 msg << "\n Empty response for action '" <<
238 actionName << "'.";
239 }
240 AddDebugLogLineN(logUPnP, msg);
241}
242
243} /* namespace UPnP */
244

Callers 1

ExecuteMethod · 0.85

Calls 4

GetFirstChildFunction · 0.85
GetTagFunction · 0.85
GetTextValueFunction · 0.85
GetNextSiblingFunction · 0.85

Tested by

no test coverage detected