CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
Myth::ProtoPlayback Class Reference
Inheritance diagram for Myth::ProtoPlayback:
Collaboration diagram for Myth::ProtoPlayback:

Public Member Functions

 ProtoPlayback (const std::string &server, unsigned port)
virtual bool Open ()
virtual void Close ()
virtual bool IsOpen ()
void TransferDone (ProtoTransfer &transfer)
bool TransferIsOpen (ProtoTransfer &transfer)
int TransferRequestBlock (ProtoTransfer &transfer, void *buffer, unsigned n)
int64_t TransferSeek (ProtoTransfer &transfer, int64_t offset, WHENCE_t whence)
Public Member Functions inherited from Myth::ProtoBase
 ProtoBase (const std::string &server, unsigned port)
virtual unsigned GetProtoVersion () const
virtual std::string GetServer () const
virtual unsigned GetPort () const
virtual int GetSocketErrNo () const
virtual int GetSocket () const
virtual bool HasHanging () const
virtual void CleanHanging ()
virtual ERROR_t GetProtoError () const

Private Member Functions

bool Announce75 ()
void TransferDone75 (ProtoTransfer &transfer)
bool TransferIsOpen75 (ProtoTransfer &transfer)
bool TransferRequestBlock75 (ProtoTransfer &transfer, unsigned n)
int32_t TransferRequestBlockFeedback75 ()
int64_t TransferSeek75 (ProtoTransfer &transfer, int64_t offset, WHENCE_t whence)

Additional Inherited Members

Public Types inherited from Myth::ProtoBase
enum  ERROR_t { ERROR_NO_ERROR = 0 , ERROR_SERVER_UNREACHABLE , ERROR_SOCKET_ERROR , ERROR_UNKNOWN_VERSION }
Protected Member Functions inherited from Myth::ProtoBase
bool OpenConnection (int rcvbuf)
void HangException ()
bool SendCommand (const char *cmd, bool feedback=true)
size_t GetMessageLength () const
bool ReadField (std::string &field)
bool IsMessageOK (const std::string &field) const
size_t FlushMessage ()
bool RcvMessageLength ()
ProgramPtr RcvProgramInfo ()
void MakeProgramInfo (const Program &program, std::string &msg)
Protected Attributes inherited from Myth::ProtoBase
OS::Latch * m_latch
TcpSocket * m_socket
unsigned m_protoVersion
std::string m_server
unsigned m_port
bool m_hang
 Connection hang: while true allow retry.
bool m_tainted
 Connection has hung since last reset.
size_t m_msgLength
size_t m_msgConsumed

Detailed Description

Definition at line 33 of file mythprotoplayback.h.

Constructor & Destructor Documentation

◆ ProtoPlayback()

ProtoPlayback::ProtoPlayback ( const std::string & server,
unsigned port )

Definition at line 45 of file mythprotoplayback.cpp.

Member Function Documentation

◆ Announce75()

bool ProtoPlayback::Announce75 ( )
private

Definition at line 81 of file mythprotoplayback.cpp.

◆ Close()

void ProtoPlayback::Close ( )
virtual

Reimplemented from Myth::ProtoBase.

Definition at line 66 of file mythprotoplayback.cpp.

◆ IsOpen()

bool ProtoPlayback::IsOpen ( )
virtual

Reimplemented from Myth::ProtoBase.

Definition at line 73 of file mythprotoplayback.cpp.

◆ Open()

bool ProtoPlayback::Open ( )
virtual

Implements Myth::ProtoBase.

Definition at line 50 of file mythprotoplayback.cpp.

◆ TransferDone()

void Myth::ProtoPlayback::TransferDone ( ProtoTransfer & transfer)
inline

Definition at line 42 of file mythprotoplayback.h.

◆ TransferDone75()

void ProtoPlayback::TransferDone75 ( ProtoTransfer & transfer)
private

Definition at line 100 of file mythprotoplayback.cpp.

◆ TransferIsOpen()

bool Myth::ProtoPlayback::TransferIsOpen ( ProtoTransfer & transfer)
inline

Definition at line 46 of file mythprotoplayback.h.

◆ TransferIsOpen75()

bool ProtoPlayback::TransferIsOpen75 ( ProtoTransfer & transfer)
private

Definition at line 118 of file mythprotoplayback.cpp.

◆ TransferRequestBlock()

int ProtoPlayback::TransferRequestBlock ( ProtoTransfer & transfer,
void * buffer,
unsigned n )

Definition at line 145 of file mythprotoplayback.cpp.

◆ TransferRequestBlock75()

bool ProtoPlayback::TransferRequestBlock75 ( ProtoTransfer & transfer,
unsigned n )
private

Definition at line 268 of file mythprotoplayback.cpp.

◆ TransferRequestBlockFeedback75()

int32_t ProtoPlayback::TransferRequestBlockFeedback75 ( )
private

Definition at line 290 of file mythprotoplayback.cpp.

◆ TransferSeek()

int64_t Myth::ProtoPlayback::TransferSeek ( ProtoTransfer & transfer,
int64_t offset,
WHENCE_t whence )
inline

Definition at line 51 of file mythprotoplayback.h.

◆ TransferSeek75()

int64_t ProtoPlayback::TransferSeek75 ( ProtoTransfer & transfer,
int64_t offset,
WHENCE_t whence )
private

Definition at line 303 of file mythprotoplayback.cpp.


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