mptsd reads mpegts streams from udp/multicast or http and combines them into one multiple program stream that is suitable for outputting to DVB-C modulator. Tested with Dektec DTE-3114 Quad QAM Modulator and used in production in small DVB-C networks. https://georgi.unixsol.org/programs/mptsd/
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.

web_pages.c 603B

123456789101112131415161718192021222324252627
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <sys/types.h>
  4. #include <sys/stat.h>
  5. #include <fcntl.h>
  6. #include <unistd.h>
  7. #include "libfuncs/io.h"
  8. #include "libfuncs/log.h"
  9. #include "libfuncs/list.h"
  10. #include "libfuncs/http_response.h"
  11. #include "config.h"
  12. extern CONFIG *config;
  13. void cmd_index(int clientsock) {
  14. send_200_ok(clientsock);
  15. send_header_textplain(clientsock);
  16. fdputs(clientsock, "\nHi from mptsd.\n");
  17. }
  18. void cmd_reconnect(int clientsock) {
  19. send_200_ok(clientsock);
  20. send_header_textplain(clientsock);
  21. fdputsf(clientsock, "\nReconnecting %d inputs.\n", config->inputs->items);
  22. }