MythTV  master
mythsocket_cb.h
Go to the documentation of this file.
1 
2 #ifndef MYTHSOCKET_CB_H
3 #define MYTHSOCKET_CB_H
4 
5 #include "mythbaseexp.h"
6 
7 #define kMythSocketShortTimeout 7000
8 #define kMythSocketLongTimeout 30000
9 
10 class MythSocket;
12 {
13  public:
14  virtual ~MythSocketCBs() = default;
15  virtual void connected(MythSocket*) = 0;
16  virtual void error(MythSocket */*socket*/, int /*err*/) {}
17  virtual void readyRead(MythSocket*) = 0;
18  virtual void connectionFailed(MythSocket*) = 0;
19  virtual void connectionClosed(MythSocket*) = 0;
20 };
21 
22 #endif // MYTHSOCKET_CB_H
mythbaseexp.h
MythSocket
Class for communcating between myth backends and frontends.
Definition: mythsocket.h:27
MythSocketCBs::connectionFailed
virtual void connectionFailed(MythSocket *)=0
MythSocketCBs::~MythSocketCBs
virtual ~MythSocketCBs()=default
MBASE_PUBLIC
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
MythSocketCBs::readyRead
virtual void readyRead(MythSocket *)=0
MythSocketCBs
Definition: mythsocket_cb.h:12
MythSocketCBs::connected
virtual void connected(MythSocket *)=0
MythSocketCBs::connectionClosed
virtual void connectionClosed(MythSocket *)=0
MythSocketCBs::error
virtual void error(MythSocket *, int)
Definition: mythsocket_cb.h:16