|
a/libupnpp/discovery.cxx |
|
b/libupnpp/discovery.cxx |
|
... |
|
... |
12 |
* You should have received a copy of the GNU General Public License
|
12 |
* You should have received a copy of the GNU General Public License
|
13 |
* along with this program; if not, write to the
|
13 |
* along with this program; if not, write to the
|
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
|
|
17 |
#include "config.h"
|
17 |
|
18 |
|
18 |
#include <stdlib.h>
|
19 |
#include <stdlib.h>
|
19 |
#include <errno.h>
|
20 |
#include <errno.h>
|
20 |
|
21 |
|
21 |
#include <iostream>
|
22 |
#include <iostream>
|
|
... |
|
... |
52 |
{
|
53 |
{
|
53 |
const string::size_type sz(MediaServerDType.size()-2);
|
54 |
const string::size_type sz(MediaServerDType.size()-2);
|
54 |
return !MediaServerDType.compare(0, sz, st, 0, sz);
|
55 |
return !MediaServerDType.compare(0, sz, st, 0, sz);
|
55 |
}
|
56 |
}
|
56 |
|
57 |
|
57 |
#ifdef UPNPP_DEBUG
|
58 |
#if defined(HAVE_UPNPSETLOGLEVEL)
|
58 |
static string cluDiscoveryToStr(const struct Upnp_Discovery *disco)
|
59 |
static string cluDiscoveryToStr(const struct Upnp_Discovery *disco)
|
59 |
{
|
60 |
{
|
60 |
stringstream ss;
|
61 |
stringstream ss;
|
61 |
ss << "ErrCode: " << disco->ErrCode << endl;
|
62 |
ss << "ErrCode: " << disco->ErrCode << endl;
|
62 |
ss << "Expires: " << disco->Expires << endl;
|
63 |
ss << "Expires: " << disco->Expires << endl;
|