vdr 2.6.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cSVDRPClient Class Reference

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
 

Detailed Description

Definition at line 316 of file svdrp.c.

Constructor & Destructor Documentation

◆ cSVDRPClient()

cSVDRPClient::cSVDRPClient ( const char * Address,
int Port,
const char * ServerName,
int Timeout )

◆ ~cSVDRPClient()

cSVDRPClient::~cSVDRPClient ( )

Member Function Documentation

◆ Close()

void cSVDRPClient::Close ( void )
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().

◆ Connected()

bool cSVDRPClient::Connected ( void ) const
inline

Definition at line 338 of file svdrp.c.

References connected.

Referenced by cSVDRPClientHandler::GetServerNames().

◆ Connection()

const char * cSVDRPClient::Connection ( void ) const
inline

Definition at line 334 of file svdrp.c.

References cIpAddress::Connection(), and serverIpAddress.

◆ Execute()

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().

◆ GetRemoteTimers()

bool cSVDRPClient::GetRemoteTimers ( cStringList & Response)

◆ HasAddress()

bool cSVDRPClient::HasAddress ( const char * Address,
int Port ) const

Definition at line 383 of file svdrp.c.

References cIpAddress::Address(), cIpAddress::Port(), and serverIpAddress.

◆ HasFetchFlag()

bool cSVDRPClient::HasFetchFlag ( int Flag)

Definition at line 496 of file svdrp.c.

References fetchFlags.

Referenced by cSVDRPClientHandler::ProcessConnections().

◆ Process()

bool cSVDRPClient::Process ( cStringList * Response = NULL)

◆ Send()

bool cSVDRPClient::Send ( const char * Command)
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().

◆ ServerName()

const char * cSVDRPClient::ServerName ( void ) const
inline

◆ SetFetchFlag()

void cSVDRPClient::SetFetchFlag ( int Flag)

Definition at line 491 of file svdrp.c.

References fetchFlags.

Referenced by Process(), and cSVDRPClientHandler::ProcessConnections().

Member Data Documentation

◆ connected

bool cSVDRPClient::connected
private

Definition at line 327 of file svdrp.c.

Referenced by Connected(), cSVDRPClient(), and Process().

◆ fetchFlags

int cSVDRPClient::fetchFlags
private

Definition at line 326 of file svdrp.c.

Referenced by cSVDRPClient(), HasFetchFlag(), and SetFetchFlag().

◆ file

cFile cSVDRPClient::file
private

Definition at line 325 of file svdrp.c.

Referenced by Close(), cSVDRPClient(), Process(), and Send().

◆ input

char* cSVDRPClient::input
private

Definition at line 322 of file svdrp.c.

Referenced by cSVDRPClient(), Process(), and ~cSVDRPClient().

◆ length

int cSVDRPClient::length
private

Definition at line 321 of file svdrp.c.

Referenced by cSVDRPClient(), and Process().

◆ pingTime

cTimeMs cSVDRPClient::pingTime
private

Definition at line 324 of file svdrp.c.

Referenced by cSVDRPClient(), Process(), and Send().

◆ serverIpAddress

cIpAddress cSVDRPClient::serverIpAddress
private

Definition at line 318 of file svdrp.c.

Referenced by Connection(), cSVDRPClient(), HasAddress(), Process(), and ~cSVDRPClient().

◆ serverName

cString cSVDRPClient::serverName
private

Definition at line 320 of file svdrp.c.

Referenced by cSVDRPClient(), Process(), Send(), ServerName(), and ~cSVDRPClient().

◆ socket

cSocket cSVDRPClient::socket
private

Definition at line 319 of file svdrp.c.

Referenced by Close(), and cSVDRPClient().

◆ timeout

int cSVDRPClient::timeout
private

Definition at line 323 of file svdrp.c.

Referenced by cSVDRPClient(), and Send().


The documentation for this class was generated from the following file: