diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-08 11:08:06 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-08 11:08:06 +0200 |
commit | 4e3325b7f7e30d1013798d74b8e7e0b8471813b1 (patch) | |
tree | c5082d2ea7afddbec5cfeda720daee873d9f11aa /vdr.c | |
parent | 3284e941c6ab7f59c4fbfa78d4976d756aec0731 (diff) | |
download | vdr-4e3325b7f7e30d1013798d74b8e7e0b8471813b1.tar.gz vdr-4e3325b7f7e30d1013798d74b8e7e0b8471813b1.tar.bz2 |
Implemented setup options for SVDRP peering
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 4.5 2015/09/01 10:33:04 kls Exp $ + * $Id: vdr.c 4.6 2015/09/08 10:00:46 kls Exp $ */ #include <getopt.h> @@ -919,7 +919,10 @@ int main(int argc, char *argv[]) // SVDRP: - StartSVDRPHandler(SVDRPport, DEFAULTSVDRPPORT); + SetSVDRPPorts(SVDRPport, DEFAULTSVDRPPORT); + StartSVDRPServerHandler(); + if (Setup.SVDRPPeering) + StartSVDRPClientHandler(); // Main program loop: @@ -1524,7 +1527,8 @@ Exit: signal(SIGPIPE, SIG_DFL); signal(SIGALRM, SIG_DFL); - StopSVDRPHandler(); + StopSVDRPClientHandler(); + StopSVDRPServerHandler(); PluginManager.StopPlugins(); cRecordControls::Shutdown(); RecordingsHandler.DelAll(); |