No Description
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.

conf.h 964B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* tsiproxy server configuration */
  2. #ifndef CONF_H
  3. # define CONF_H
  4. #include "data.h"
  5. typedef struct {
  6. unsigned int server_port; /* The port that iptvd will bind to */
  7. int server_socket;
  8. struct sockaddr_in server_name;
  9. struct hostent *host_ptr;
  10. char *pidfile;
  11. char *ident;
  12. char *logident;
  13. char *bind_to; /* The address that ipdv will bind to */
  14. char *channels_file; /* File in channels format (used for debugging) */
  15. char *networks_file; /* File in networks format (used for debugging) */
  16. char *redirect_url; /* Redirect all requests to this server */
  17. int disable_burst; /* burst mpeg buffer to clients */
  18. int ts_sync; /* ts proxy syncronises first 7 packets */
  19. } CONFIG;
  20. int load_channels(CONFIG *config);
  21. int load_networks(CONFIG *config);
  22. CONFIG * config_alloc ();
  23. void config_free (CONFIG **conf);
  24. int config_redirect_enabled(CONFIG *conf, int clientsock, char *path);
  25. #endif