vdr 2.6.9
|
Public Member Functions | |
cSVDRPClient (const char *Address, int Port, const char *ServerName, int Timeout) | |
~cSVDRPClient () | |
const char * | ServerName (void) const |
const char * | Connection (void) const |
bool | HasAddress (const char *Address, int Port) const |
bool | Process (cStringList *Response=NULL) |
bool | Execute (const char *Command, cStringList *Response=NULL) |
bool | Connected (void) const |
void | SetFetchFlag (int Flag) |
bool | HasFetchFlag (int Flag) |
bool | GetRemoteTimers (cStringList &Response) |
Private Member Functions | |
bool | Send (const char *Command) |
void | Close (void) |
Private Attributes | |
cIpAddress | serverIpAddress |
cSocket | socket |
cString | serverName |
int | length |
char * | input |
int | timeout |
cTimeMs | pingTime |
cFile | file |
int | fetchFlags |
bool | connected |
cSVDRPClient::cSVDRPClient | ( | const char * | Address, |
int | Port, | ||
const char * | ServerName, | ||
int | Timeout ) |
Definition at line 346 of file svdrp.c.
References cPoller::Add(), cSocket::Connect(), connected, cIpAddress::Connection(), dsyslog, esyslog, fetchFlags, file, input, length, MALLOC, cFile::Open(), pingTime, serverIpAddress, serverName, ServerName(), cTimeMs::Set(), Setup, sffNone, cSocket::Socket(), socket, SVDRPClientPoller, cSetup::SVDRPHostName, and timeout.
cSVDRPClient::~cSVDRPClient | ( | ) |
Definition at line 367 of file svdrp.c.
References Close(), cIpAddress::Connection(), dsyslog, input, serverIpAddress, serverName, Setup, and cSetup::SVDRPHostName.
|
private |
Definition at line 374 of file svdrp.c.
References cSocket::Close(), cFile::Close(), cPoller::Del(), file, cFile::IsOpen(), socket, and SVDRPClientPoller.
Referenced by Process(), and ~cSVDRPClient().
|
inline |
Definition at line 338 of file svdrp.c.
References connected.
Referenced by cSVDRPClientHandler::GetServerNames().
|
inline |
Definition at line 334 of file svdrp.c.
References cIpAddress::Connection(), and serverIpAddress.
bool cSVDRPClient::Execute | ( | const char * | Command, |
cStringList * | Response = NULL ) |
Definition at line 481 of file svdrp.c.
References cStringList::Clear(), Process(), and Send().
Referenced by GetRemoteTimers(), and cSVDRPClientHandler::ProcessConnections().
bool cSVDRPClient::GetRemoteTimers | ( | cStringList & | Response | ) |
Definition at line 503 of file svdrp.c.
References cStringList::Clear(), esyslog, Execute(), ServerName(), cVector< T >::Size(), cStringList::SortNumerically(), strshift(), and SVDRPCode().
Referenced by cSVDRPClientHandler::ProcessConnections().
bool cSVDRPClient::HasAddress | ( | const char * | Address, |
int | Port ) const |
Definition at line 383 of file svdrp.c.
References cIpAddress::Address(), cIpAddress::Port(), and serverIpAddress.
bool cSVDRPClient::HasFetchFlag | ( | int | Flag | ) |
Definition at line 496 of file svdrp.c.
References fetchFlags.
Referenced by cSVDRPClientHandler::ProcessConnections().
bool cSVDRPClient::Process | ( | cStringList * | Response = NULL | ) |
Definition at line 399 of file svdrp.c.
References cVector< T >::Append(), Close(), connected, cIpAddress::Connection(), dbgsvdrp, dsyslog, esyslog, file, input, cFile::IsOpen(), isyslog, length, pingTime, cFile::Ready(), safe_read(), serverIpAddress, serverName, cTimeMs::Set(), SetFetchFlag(), Setup, sffConn, sffPing, sffTimers, cSetup::SVDRPHostName, SVDRPResonseTimeout, and cTimeMs::TimedOut().
Referenced by Execute(), and cSVDRPClientHandler::ProcessConnections().
|
private |
Definition at line 388 of file svdrp.c.
References dbgsvdrp, file, LOG_ERROR, pingTime, safe_write(), serverName, cTimeMs::Set(), and timeout.
Referenced by Execute().
|
inline |
Definition at line 333 of file svdrp.c.
References serverName.
Referenced by cSVDRPClient(), GetRemoteTimers(), cSVDRPClientHandler::GetServerNames(), and cSVDRPClientHandler::ProcessConnections().
void cSVDRPClient::SetFetchFlag | ( | int | Flag | ) |
Definition at line 491 of file svdrp.c.
References fetchFlags.
Referenced by Process(), and cSVDRPClientHandler::ProcessConnections().
|
private |
Definition at line 327 of file svdrp.c.
Referenced by Connected(), cSVDRPClient(), and Process().
|
private |
Definition at line 326 of file svdrp.c.
Referenced by cSVDRPClient(), HasFetchFlag(), and SetFetchFlag().
|
private |
|
private |
Definition at line 322 of file svdrp.c.
Referenced by cSVDRPClient(), Process(), and ~cSVDRPClient().
|
private |
Definition at line 321 of file svdrp.c.
Referenced by cSVDRPClient(), and Process().
|
private |
Definition at line 324 of file svdrp.c.
Referenced by cSVDRPClient(), Process(), and Send().
|
private |
Definition at line 318 of file svdrp.c.
Referenced by Connection(), cSVDRPClient(), HasAddress(), Process(), and ~cSVDRPClient().
|
private |
Definition at line 320 of file svdrp.c.
Referenced by cSVDRPClient(), Process(), Send(), ServerName(), and ~cSVDRPClient().
|
private |
Definition at line 319 of file svdrp.c.
Referenced by Close(), and cSVDRPClient().
|
private |
Definition at line 323 of file svdrp.c.
Referenced by cSVDRPClient(), and Send().