MythTV  master
Enumerations | Functions | Variables
mythzmserver.cpp File Reference
#include <arpa/inet.h>
#include <algorithm>
#include <array>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fcntl.h>
#include <iostream>
#include <map>
#include <netinet/in.h>
#include <string>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "zmserver.h"
Include dependency graph for mythzmserver.cpp:

Go to the source code of this file.

Enumerations

enum  EXIT_CODES : std::uint8_t {
  GENERIC_EXIT_OK = 0, GENERIC_EXIT_NOT_OK = 128, GENERIC_EXIT_CMD_NOT_FOUND = 129, GENERIC_EXIT_NO_MYTHCONTEXT = 130,
  GENERIC_EXIT_NO_THEME = 131, GENERIC_EXIT_INVALID_CMDLINE = 132, GENERIC_EXIT_DB_OUTOFDATE = 133, GENERIC_EXIT_DB_ERROR = 134,
  GENERIC_EXIT_SOCKET_ERROR = 135, GENERIC_EXIT_PERMISSIONS_ERROR = 136, GENERIC_EXIT_CONNECT_ERROR = 137, GENERIC_EXIT_SETUP_ERROR = 138,
  GENERIC_EXIT_INVALID_TIME = 139, GENERIC_EXIT_KILLED = 140, GENERIC_EXIT_TIMEOUT = 141, GENERIC_EXIT_RUNNING = 142,
  GENERIC_EXIT_PIPE_FAILURE = 143, GENERIC_EXIT_NO_HANDLER = 144, GENERIC_EXIT_DAEMONIZING_ERROR = 145, GENERIC_EXIT_NO_RECORDING_DATA = 146,
  GENERIC_EXIT_REMOTE_FILE = 147, GENERIC_EXIT_RESTART = 148, GENERIC_EXIT_WRITE_FRAME_ERROR = 149, GENERIC_EXIT_DEADLOCK = 150,
  GENERIC_EXIT_IN_USE = 151, GENERIC_EXIT_START = 152, GENERIC_EXIT_DB_NOTIMEZONE = 153, EXIT_OK = 0,
  EXIT_INVALID_CMDLINE = 132, EXIT_OPENING_LOGFILE_ERROR = 136, EXIT_DAEMONIZING_ERROR = 145, EXIT_SOCKET_ERROR = 135,
  EXIT_VERSION_ERROR = 136
}
 

Functions

int main (int argc, char **argv)
 

Variables

static constexpr uint16_t PORT { 6548 }
 
static constexpr const char * ZM_CONFIG { "/etc/zm/zm.conf" }
 
static constexpr const char * ZM_OVERRIDECONFIG { "/etc/zm/conf.d/01-system-paths.conf" }
 

Enumeration Type Documentation

◆ EXIT_CODES

enum EXIT_CODES : std::uint8_t
Enumerator
GENERIC_EXIT_OK 

Exited with no error.

GENERIC_EXIT_NOT_OK 

Exited with error.

GENERIC_EXIT_CMD_NOT_FOUND 

Command not found.

GENERIC_EXIT_NO_MYTHCONTEXT 

No MythContext available.

GENERIC_EXIT_NO_THEME 

No Theme available.

GENERIC_EXIT_INVALID_CMDLINE 

Command line parse error.

GENERIC_EXIT_DB_OUTOFDATE 

Database needs upgrade.

GENERIC_EXIT_DB_ERROR 

Database error.

GENERIC_EXIT_SOCKET_ERROR 

Socket error.

GENERIC_EXIT_PERMISSIONS_ERROR 

File permissions error.

GENERIC_EXIT_CONNECT_ERROR 

Can't connect to master backend.

GENERIC_EXIT_SETUP_ERROR 

Incorrectly setup system.

GENERIC_EXIT_INVALID_TIME 

Invalid time.

GENERIC_EXIT_KILLED 

Process killed or stopped.

GENERIC_EXIT_TIMEOUT 

Process timed out.

GENERIC_EXIT_RUNNING 

Process is running.

GENERIC_EXIT_PIPE_FAILURE 

Error creating I/O pipes.

GENERIC_EXIT_NO_HANDLER 

No MythSystemLegacy Handler.

GENERIC_EXIT_DAEMONIZING_ERROR 

Error daemonizing or execl.

GENERIC_EXIT_NO_RECORDING_DATA 

No program/recording data.

GENERIC_EXIT_REMOTE_FILE 

Can't transcode a remote file.

GENERIC_EXIT_RESTART 

Need to restart transcoding.

GENERIC_EXIT_WRITE_FRAME_ERROR 

Frame write error.

GENERIC_EXIT_DEADLOCK 

Transcode deadlock detected.

GENERIC_EXIT_IN_USE 

Recording in use, can't flag.

GENERIC_EXIT_START 

MythSystemLegacy process starting.

GENERIC_EXIT_DB_NOTIMEZONE 

Missing DB time zone support.

EXIT_OK 
EXIT_INVALID_CMDLINE 
EXIT_OPENING_LOGFILE_ERROR 
EXIT_DAEMONIZING_ERROR 
EXIT_SOCKET_ERROR 
EXIT_VERSION_ERROR 

Definition at line 47 of file mythzmserver.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 56 of file mythzmserver.cpp.

Variable Documentation

◆ PORT

constexpr uint16_t PORT { 6548 }
staticconstexpr

Definition at line 36 of file mythzmserver.cpp.

Referenced by main().

◆ ZM_CONFIG

constexpr const char* ZM_CONFIG { "/etc/zm/zm.conf" }
staticconstexpr

Definition at line 39 of file mythzmserver.cpp.

Referenced by main().

◆ ZM_OVERRIDECONFIG

constexpr const char* ZM_OVERRIDECONFIG { "/etc/zm/conf.d/01-system-paths.conf" }
staticconstexpr

Definition at line 42 of file mythzmserver.cpp.

Referenced by main().