|
vdr
2.4.0
|
Public Member Functions | |
| cSVDRPServer (int Socket, const cIpAddress *ClientIpAddress) | |
| ~cSVDRPServer () | |
| const char * | ClientName (void) const |
| bool | HasConnection (void) |
| bool | Process (void) |
Private Member Functions | |
| void | Close (bool SendReply=false, bool Timeout=false) |
| bool | Send (const char *s) |
| void | Reply (int Code, const char *fmt,...) __attribute__((format(printf |
| void void | PrintHelpTopics (const char **hp) |
| void | CmdCHAN (const char *Option) |
| void | CmdCLRE (const char *Option) |
| void | CmdCONN (const char *Option) |
| void | CmdDELC (const char *Option) |
| void | CmdDELR (const char *Option) |
| void | CmdDELT (const char *Option) |
| void | CmdEDIT (const char *Option) |
| void | CmdGRAB (const char *Option) |
| void | CmdHELP (const char *Option) |
| void | CmdHITK (const char *Option) |
| void | CmdLSTC (const char *Option) |
| void | CmdLSTD (const char *Option) |
| void | CmdLSTE (const char *Option) |
| void | CmdLSTR (const char *Option) |
| void | CmdLSTT (const char *Option) |
| void | CmdMESG (const char *Option) |
| void | CmdMODC (const char *Option) |
| void | CmdMODT (const char *Option) |
| void | CmdMOVC (const char *Option) |
| void | CmdMOVR (const char *Option) |
| void | CmdNEWC (const char *Option) |
| void | CmdNEWT (const char *Option) |
| void | CmdNEXT (const char *Option) |
| void | CmdPING (const char *Option) |
| void | CmdPLAY (const char *Option) |
| void | CmdPLUG (const char *Option) |
| void | CmdPOLL (const char *Option) |
| void | CmdPRIM (const char *Option) |
| void | CmdPUTE (const char *Option) |
| void | CmdREMO (const char *Option) |
| void | CmdSCAN (const char *Option) |
| void | CmdSTAT (const char *Option) |
| void | CmdUPDT (const char *Option) |
| void | CmdUPDR (const char *Option) |
| void | CmdVOLU (const char *Option) |
| void | Execute (char *Cmd) |
Private Attributes | |
| int | socket |
| cIpAddress | clientIpAddress |
| cString | clientName |
| cFile | file |
| cPUTEhandler * | PUTEhandler |
| int | numChars |
| int | length |
| char * | cmdLine |
| time_t | lastActivity |
| cSVDRPServer::cSVDRPServer | ( | int | Socket, |
| const cIpAddress * | ClientIpAddress | ||
| ) |
Definition at line 1122 of file svdrp.c.
References cPoller::Add(), cIpAddress::Connection(), dsyslog, MALLOC, Setup, cSetup::SVDRPHostName, cCharSetConv::SystemCharacterTable(), TimeToString(), and VDRVERSION.
| cSVDRPServer::~cSVDRPServer | ( | ) |
Definition at line 1140 of file svdrp.c.
References dsyslog, Setup, and cSetup::SVDRPHostName.
|
private |
Definition at line 1147 of file svdrp.c.
References cPoller::Del(), DELETENULL(), isyslog, Setup, and cSetup::SVDRPHostName.
|
private |
Definition at line 1233 of file svdrp.c.
References cDevice::CurrentChannel(), tChannelID::FromString(), isnumber(), LOCK_CHANNELS_READ, cChannels::MaxNumber(), cListObject::Next(), cDevice::PrimaryDevice(), and cDevice::SwitchChannel().
|
private |
Definition at line 1295 of file svdrp.c.
References cSchedule::Cleanup(), tChannelID::ClrRid(), EITDISABLETIME, tChannelID::FromString(), tChannelID::InvalidID, isnumber(), LOCK_CHANNELS_READ, LOCK_SCHEDULES_WRITE, LOCK_TIMERS_WRITE, cChannels::MaxNumber(), cListObject::Next(), and cEitFilter::SetDisableUntil().
|
private |
Definition at line 1358 of file svdrp.c.
References cSVDRPClientHandler::AddClient(), cSVDRPServerParams::Error(), cSVDRPServerParams::Name(), and cSVDRPServerParams::Ok().
|
private |
Definition at line 1378 of file svdrp.c.
References cDevice::CurrentChannel(), cListObject::Index(), isnumber(), isyslog, LOCK_CHANNELS_WRITE, LOCK_TIMERS_READ, cChannel::Number(), cDevice::PrimaryDevice(), cDevice::Replaying(), cDevice::SetCurrentChannel(), Setup, cSetup::SVDRPHostName, and cDevice::Transferring().
|
private |
Definition at line 1442 of file svdrp.c.
References isnumber(), isyslog, LOCK_RECORDINGS_WRITE, RecordingInUseMessage(), Setup, and cSetup::SVDRPHostName.
|
private |
Definition at line 1472 of file svdrp.c.
References isnumber(), isyslog, LOCK_TIMERS_WRITE, cRecordControls::Process(), Setup, and cSetup::SVDRPHostName.
|
private |
Definition at line 1498 of file svdrp.c.
References cRecordingsHandler::Add(), cListBase::Count(), isnumber(), cMarks::Load(), LOCK_RECORDINGS_READ, RecordingsHandler, and ruCut.
|
private |
Definition at line 1524 of file svdrp.c.
References AddDirectory(), dsyslog, cDevice::GrabImage(), isnumber(), LOG_ERROR_STR, cBase64Encoder::NextLine(), cDevice::PrimaryDevice(), safe_write(), Setup, cSetup::SVDRPHostName, and cString::Truncate().
|
private |
Definition at line 1661 of file svdrp.c.
References cPlugin::Description(), GetHelpPage(), cPluginManager::GetPlugin(), HelpPages, cPlugin::Name(), cPlugin::SVDRPHelpPages(), VDRVERSION, and cPlugin::Version().
|
private |
Definition at line 1689 of file svdrp.c.
References cRemote::Enabled(), cKey::FromString(), kNone, cRemote::Put(), and cKey::ToString().
|
private |
Definition at line 1728 of file svdrp.c.
References cDevice::CurrentChannel(), tChannelID::FromString(), cChannel::GetChannelID(), isnumber(), LOCK_CHANNELS_READ, cChannels::MaxNumber(), cListObject::Next(), cChannel::Number(), skipspace(), startswith(), tChannelID::ToString(), and cChannel::ToText().
|
private |
Definition at line 1776 of file svdrp.c.
References cDevice::GetDevice(), cDevice::NumDevices(), cSetup::PrimaryDVB, and Setup.
|
private |
Definition at line 1788 of file svdrp.c.
References dmAll, dmAtTime, dmFollowing, dmPresent, cSchedule::Dump(), tChannelID::FromString(), isnumber(), LOCK_CHANNELS_READ, and LOCK_SCHEDULES_READ.
|
private |
Definition at line 1867 of file svdrp.c.
References cRecording::Id(), isnumber(), LOCK_RECORDINGS_READ, cListObject::Next(), and cRecording::Title().
|
private |
Definition at line 1926 of file svdrp.c.
References cTimer::Id(), isnumber(), LOCK_TIMERS_READ, cListObject::Next(), cListObject::Prev(), and cTimer::Remote().
|
private |
Definition at line 1982 of file svdrp.c.
References isyslog, mtInfo, cSkins::QueueMessage(), Setup, Skins, and cSetup::SVDRPHostName.
|
private |
Definition at line 1993 of file svdrp.c.
References isyslog, LOCK_CHANNELS_WRITE, cChannel::Parse(), Setup, skipspace(), and cSetup::SVDRPHostName.
|
private |
Definition at line 2029 of file svdrp.c.
References cTimer::ClrFlags(), isyslog, LOCK_TIMERS_WRITE, cTimer::Parse(), cTimer::SetFlags(), Setup, skipspace(), cSetup::SVDRPHostName, tfActive, and tfRecording.
|
private |
Definition at line 2068 of file svdrp.c.
References cDevice::CurrentChannel(), isyslog, LOCK_CHANNELS_WRITE, LOCK_TIMERS_READ, cChannel::Number(), cDevice::PrimaryDevice(), cDevice::Replaying(), cDevice::SetCurrentChannel(), Setup, skipspace(), cSetup::SVDRPHostName, and cDevice::Transferring().
|
private |
Definition at line 2121 of file svdrp.c.
References isnumber(), LOCK_RECORDINGS_WRITE, RecordingInUseMessage(), and skipspace().
|
private |
Definition at line 2165 of file svdrp.c.
References isyslog, LOCK_CHANNELS_WRITE, cChannel::Number(), cChannel::Parse(), Setup, cSetup::SVDRPHostName, and cChannel::ToText().
|
private |
Definition at line 2192 of file svdrp.c.
References cTimer::ClrFlags(), cTimer::Id(), isyslog, LOCK_TIMERS_WRITE, cTimer::Parse(), Setup, cSetup::SVDRPHostName, tfRecording, cTimer::ToDescr(), and cTimer::ToText().
|
private |
Definition at line 2212 of file svdrp.c.
References LOCK_TIMERS_READ, cThread::Start(), and TimeToString().
|
private |
Definition at line 2231 of file svdrp.c.
References Setup, and cSetup::SVDRPHostName.
|
private |
Definition at line 2236 of file svdrp.c.
References cControl::Attach(), cResumeFile::Delete(), cRecordings::GetRecordingsRead(), HMSFToIndex(), isnumber(), cControl::Launch(), cStateKey::Remove(), cResumeFile::Save(), cReplayControl::SetRecording(), cControl::Shutdown(), and skipspace().
|
private |
Definition at line 2288 of file svdrp.c.
References cRemote::CallPlugin(), cPlugin::Description(), GetHelpPage(), cPluginManager::GetPlugin(), cPlugin::Name(), skipspace(), cPlugin::SVDRPCommand(), cPlugin::SVDRPHelpPages(), and cPlugin::Version().
|
private |
Definition at line 2359 of file svdrp.c.
References cSVDRPClientHandler::TriggerFetchingTimers().
|
private |
Definition at line 2389 of file svdrp.c.
References isnumber(), cDevice::NumDevices(), cDevice::PrimaryDevice(), cSetup::PrimaryDVB, and Setup.
|
private |
Definition at line 2415 of file svdrp.c.
References cSchedules::Cleanup(), DELETENULL(), and cSchedules::Read().
|
private |
Definition at line 2440 of file svdrp.c.
References cRemote::Enabled(), and cRemote::SetEnabled().
|
private |
Definition at line 2458 of file svdrp.c.
References EITScanner, and cEITScanner::ForceScan().
|
private |
Definition at line 2464 of file svdrp.c.
References cVideoDirectory::VideoDiskSpace().
|
private |
Definition at line 2512 of file svdrp.c.
References LOCK_RECORDINGS_WRITE.
|
private |
Definition at line 2479 of file svdrp.c.
References cTimer::ClrFlags(), cTimer::Id(), isyslog, LOCK_TIMERS_WRITE, cTimer::Parse(), cTimer::SetFlags(), Setup, cSetup::SVDRPHostName, tfRecording, cTimer::ToDescr(), and cTimer::ToText().
|
private |
Definition at line 2519 of file svdrp.c.
References cDevice::CurrentVolume(), isnumber(), cDevice::PrimaryDevice(), cDevice::SetVolume(), cDevice::ToggleMute(), and VOLUMEDELTA.
|
private |
Definition at line 2543 of file svdrp.c.
References CMD, DELETENULL(), EITDISABLETIME, cEitFilter::SetDisableUntil(), and skipspace().
|
inline |
Definition at line 1116 of file svdrp.c.
References cFile::IsOpen().
|
private |
Definition at line 1207 of file svdrp.c.
References GetHelpTopic(), and MAXHELPTOPIC.
| bool cSVDRPServer::Process | ( | void | ) |
Definition at line 2602 of file svdrp.c.
References dbgsvdrp, esyslog, cSVDRPClientHandler::Execute(), isyslog, MALLOC, safe_read(), Setup, cSetup::SVDRPHostName, and cSetup::SVDRPTimeout.
|
private |
Definition at line 1172 of file svdrp.c.
References esyslog, Setup, cString::sprintf(), and cSetup::SVDRPHostName.
|
private |
Definition at line 1161 of file svdrp.c.
References dbgsvdrp, LOG_ERROR, and safe_write().
|
private |
|
private |
1.8.11