blob: 166836932a97e5ed81373b83912c3340d066d0f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* config.cpp
*
* Created on: 05.08.2012
* Author: savop
*/
#include "../include/config.h"
#include "../include/tools.h"
#include "../upnp.h"
using namespace upnp;
upnp::cConfig::cConfig()
: enabled(true)
, expertSettings(false)
, webServerPort(0)
, presentationURL("index.html")
, useLive(false)
, livePort(8008)
, maxContentLength(KB(20))
, announceMaxAge(1800)
, deviceUUID(tools::GenerateUUIDRandomly())
, bindToAddress(true)
, address("0.0.0.0")
, port(0)
, databaseFile("metadata.db")
{
}
void upnp::cConfig::GenerateNewDeviceUUID(){
deviceUUID = tools::GenerateUUIDRandomly();
}
|