comparison src/ushare.c @ 171:6c710e5a28b8

Support latest upnp-api
author Naoya OYAMA <naoya.oyama@gmail.com>
date Tue, 23 Oct 2012 20:31:01 +0900
parents 4f3640bf350d
children 2ae60285f383
comparison
equal deleted inserted replaced
170:4f3640bf350d 171:6c710e5a28b8
200 return; 200 return;
201 201
202 if (strcmp (request->DevUDN + 5, ut->udn)) 202 if (strcmp (request->DevUDN + 5, ut->udn))
203 return; 203 return;
204 204
205 ip = request->CtrlPtIPAddr.s_addr;
206 ip = ntohl (ip);
207 sprintf (val, "%d.%d.%d.%d",
208 (ip >> 24) & 0xFF, (ip >> 16) & 0xFF, (ip >> 8) & 0xFF, ip & 0xFF);
209
210 if (ut->verbose) 205 if (ut->verbose)
211 { 206 {
212 DOMString str = ixmlPrintDocument (request->ActionRequest); 207 DOMString str = ixmlPrintDocument (request->ActionRequest);
213 log_verbose ("***************************************************\n"); 208 log_verbose ("***************************************************\n");
214 log_verbose ("** New Action Request **\n"); 209 log_verbose ("** New Action Request **\n");
215 log_verbose ("***************************************************\n"); 210 log_verbose ("***************************************************\n");
216 log_verbose ("ServiceID: %s\n", request->ServiceID); 211 log_verbose ("ServiceID: %s\n", request->ServiceID);
217 log_verbose ("ActionName: %s\n", request->ActionName); 212 log_verbose ("ActionName: %s\n", request->ActionName);
218 log_verbose ("CtrlPtIP: %s\n", val);
219 log_verbose ("Action Request:\n%s\n", str); 213 log_verbose ("Action Request:\n%s\n", str);
220 ixmlFreeDOMString (str); 214 ixmlFreeDOMString (str);
221 } 215 }
222 216
223 if (find_service_action (request, &service, &action)) 217 if (find_service_action (request, &service, &action))