* Datatypes and variables
* *************************************************************************/
-static void *htsp_server;
+static void *htsp_server, *htsp_server_2;
#define HTSP_PROTO_VERSION 6
void
htsp_init(void)
{
+ extern int htsp_port_extra;
htsp_server = tcp_server_create(htsp_port, htsp_serve, NULL);
+ if(htsp_port_extra)
+ htsp_server_2 = tcp_server_create(htsp_port_extra, htsp_serve, NULL);
}
/* **************************************************************************
int webui_port;
int htsp_port;
+int htsp_port_extra;
char *tvheadend_cwd;
static void
// make sure the timezone is set
tzset();
- while((c = getopt(argc, argv, "Aa:fp:u:g:c:Chdr:j:sw:e:")) != -1) {
+ while((c = getopt(argc, argv, "Aa:fp:u:g:c:Chdr:j:sw:e:E:")) != -1) {
switch(c) {
case 'a':
adapter_mask = 0x0;
case 'e':
htsp_port = atoi(optarg);
break;
+ case 'E':
+ htsp_port_extra = atoi(optarg);
+ break;
case 'u':
usernam = optarg;
break;