|
| enum | ERROR_t { ERROR_NO_ERROR = 0,
ERROR_SERVER_UNREACHABLE,
ERROR_SOCKET_ERROR,
ERROR_UNKNOWN_VERSION
} |
| |
|
|
| ProtoBase (const std::string &server, unsigned port) |
| |
|
virtual bool | Open ()=0 |
| |
|
virtual void | Close () |
| |
|
virtual bool | IsOpen () |
| |
|
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 |
| |
|
|
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) |
| |
|
|
OS::CMutex * | m_mutex |
| |
|
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 |
| |
|
| bool | RcvVersion (unsigned *version) |
| |
|
ProgramPtr | RcvProgramInfo75 () |
| |
|
ProgramPtr | RcvProgramInfo76 () |
| |
|
ProgramPtr | RcvProgramInfo79 () |
| |
|
ProgramPtr | RcvProgramInfo82 () |
| |
|
ProgramPtr | RcvProgramInfo86 () |
| |
|
void | MakeProgramInfo75 (const Program &program, std::string &msg) |
| |
|
void | MakeProgramInfo76 (const Program &program, std::string &msg) |
| |
|
void | MakeProgramInfo79 (const Program &program, std::string &msg) |
| |
|
void | MakeProgramInfo82 (const Program &program, std::string &msg) |
| |
|
void | MakeProgramInfo86 (const Program &program, std::string &msg) |
| |
|
|
bool | m_isOpen |
| |
|
ERROR_t | m_protoError |
| |
Definition at line 44 of file mythprotobase.h.
◆ RcvVersion()
| bool ProtoBase::RcvVersion |
( |
unsigned * |
version | ) |
|
|
private |
◆ ReadField()
| bool ProtoBase::ReadField |
( |
std::string & |
field | ) |
|
|
protected |
The documentation for this class was generated from the following files: