MythTV
master
|
#include <zmserver.h>
Public Member Functions | |
ZMServer (int sock, bool debug) | |
~ZMServer () | |
bool | processRequest (char *buf, int nbytes) |
Private Member Functions | |
std::string | getZMSetting (const std::string &setting) const |
bool | send (const std::string &s) const |
bool | send (const std::string &s, const unsigned char *buffer, int dataLen) const |
void | sendError (const std::string &error) |
void | getMonitorList (void) |
void | handleHello (void) |
void | handleGetServerStatus (void) |
void | handleGetMonitorStatus (void) |
void | handleGetAlarmStates (void) |
void | handleGetMonitorList (void) |
void | handleGetCameraList (void) |
void | handleGetEventList (std::vector< std::string > tokens) |
void | handleGetEventFrame (std::vector< std::string > tokens) |
void | handleGetAnalysisFrame (std::vector< std::string > tokens) |
void | handleGetLiveFrame (std::vector< std::string > tokens) |
void | handleGetFrameList (std::vector< std::string > tokens) |
void | handleDeleteEvent (std::vector< std::string > tokens) |
void | handleDeleteEventList (std::vector< std::string > tokens) |
void | handleGetEventDates (std::vector< std::string > tokens) |
void | handleRunZMAudit (void) |
void | handleSetMonitorFunction (std::vector< std::string > tokens) |
void | zmcControl (MONITOR *monitor, const std::string &mode) |
void | zmaControl (MONITOR *monitor, const std::string &mode) |
Static Private Member Functions | |
static int | getFrame (FrameData &buffer, MONITOR *monitor) |
static long long | getDiskSpace (const std::string &filename, long long &total, long long &used) |
static void | tokenize (const std::string &command, std::vector< std::string > &tokens) |
static std::string | runCommand (const std::string &command) |
static void | getMonitorStatus (const std::string &id, const std::string &type, const std::string &device, const std::string &host, const std::string &channel, const std::string &function, std::string &zmcStatus, std::string &zmaStatus, const std::string &enabled) |
Private Attributes | |
bool | m_debug {false} |
int | m_sock {-1} |
std::vector< MONITOR * > | m_monitors |
std::map< int, MONITOR * > | m_monitorMap |
bool | m_useDeepStorage {false} |
bool | m_useAnalysisImages {false} |
std::string | m_eventFileFormat |
std::string | m_analysisFileFormat |
key_t | m_shmKey |
std::string | m_mmapPath |
Definition at line 302 of file zmserver.h.
ZMServer::ZMServer | ( | int | sock, |
bool | debug | ||
) |
Definition at line 515 of file zmserver.cpp.
ZMServer::~ZMServer | ( | ) |
Definition at line 588 of file zmserver.cpp.
bool ZMServer::processRequest | ( | char * | buf, |
int | nbytes | ||
) |
Definition at line 634 of file zmserver.cpp.
Referenced by main().
|
private |
Definition at line 1916 of file zmserver.cpp.
Referenced by zmaControl(), and ZMServer().
|
private |
Definition at line 695 of file zmserver.cpp.
Referenced by handleDeleteEvent(), handleDeleteEventList(), handleGetAlarmStates(), handleGetAnalysisFrame(), handleGetCameraList(), handleGetEventDates(), handleGetEventFrame(), handleGetEventList(), handleGetFrameList(), handleGetLiveFrame(), handleGetMonitorList(), handleGetMonitorStatus(), handleGetServerStatus(), handleHello(), handleRunZMAudit(), handleSetMonitorFunction(), processRequest(), send(), and sendError().
|
private |
Definition at line 709 of file zmserver.cpp.
|
private |
Definition at line 728 of file zmserver.cpp.
Referenced by handleDeleteEvent(), handleDeleteEventList(), handleGetAnalysisFrame(), handleGetEventDates(), handleGetEventFrame(), handleGetEventList(), handleGetFrameList(), handleGetLiveFrame(), handleGetMonitorStatus(), handleSetMonitorFunction(), and zmcControl().
|
private |
Definition at line 1711 of file zmserver.cpp.
Referenced by ZMServer().
Definition at line 1783 of file zmserver.cpp.
Referenced by handleGetLiveFrame().
|
staticprivate |
Definition at line 745 of file zmserver.cpp.
Referenced by handleGetServerStatus().
|
staticprivate |
Definition at line 611 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 735 of file zmserver.cpp.
Referenced by processRequest().
|
staticprivate |
Definition at line 1076 of file zmserver.cpp.
Referenced by getMonitorStatus(), handleGetServerStatus(), handleSetMonitorFunction(), zmaControl(), and zmcControl().
|
staticprivate |
Definition at line 1090 of file zmserver.cpp.
Referenced by handleGetMonitorStatus().
|
private |
Definition at line 774 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 983 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 808 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1586 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1570 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 828 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1141 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1224 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1394 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1462 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1621 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1658 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 919 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1693 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1948 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 2051 of file zmserver.cpp.
Referenced by handleSetMonitorFunction().
|
private |
Definition at line 2096 of file zmserver.cpp.
Referenced by handleSetMonitorFunction().
Definition at line 344 of file zmserver.h.
Referenced by getMonitorList(), getZMSetting(), handleDeleteEvent(), handleDeleteEventList(), handleGetAnalysisFrame(), handleGetEventDates(), handleGetEventFrame(), handleGetEventList(), handleGetFrameList(), handleGetLiveFrame(), handleGetMonitorList(), handleGetMonitorStatus(), handleRunZMAudit(), handleSetMonitorFunction(), processRequest(), ZMServer(), and ~ZMServer().
|
private |
Definition at line 345 of file zmserver.h.
Referenced by send(), and ZMServer().
|
private |
Definition at line 346 of file zmserver.h.
Referenced by getMonitorList(), handleGetAlarmStates(), handleGetCameraList(), handleGetMonitorList(), and ~ZMServer().
|
private |
Definition at line 347 of file zmserver.h.
Referenced by getMonitorList(), handleGetLiveFrame(), handleSetMonitorFunction(), and ~ZMServer().
Definition at line 348 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), handleGetEventFrame(), and ZMServer().
Definition at line 349 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), and ZMServer().
|
private |
Definition at line 350 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), handleGetEventFrame(), and ZMServer().
|
private |
Definition at line 351 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), and ZMServer().
|
private |
Definition at line 352 of file zmserver.h.
Referenced by getMonitorList(), and ZMServer().
|
private |
Definition at line 353 of file zmserver.h.
Referenced by getMonitorList(), and ZMServer().