tomcast reads mpeg transport streams over http or udp (multicast or unicast) and outputs them to chosen multicast group. Basically a simple http2multicast daemon designed to work 24/7.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * mptsd configuration header file
  3. * Copyright (C) 2010-2011 Unix Solutions Ltd.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2
  7. * as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  17. */
  18. #ifndef CONFIG_H
  19. #define CONFIG_H
  20. #include <pthread.h>
  21. #include <arpa/inet.h>
  22. #include <netinet/in.h>
  23. #include "libfuncs/libfuncs.h"
  24. struct config {
  25. char *ident;
  26. char *pidfile;
  27. int syslog_active;
  28. char *logident;
  29. char *loghost;
  30. int logport;
  31. struct sockaddr_in server;
  32. char *server_addr;
  33. int server_port;
  34. int server_socket;
  35. pthread_t server_thread;
  36. char *channels_file;
  37. LIST *chanconf;
  38. LIST *restreamer;
  39. pthread_mutex_t channels_lock;
  40. };
  41. #endif