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*, int) {}
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_
virtual void error(MythSocket *, int)
Definition: mythsocket_cb.h:16
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
Class for communcating between myth backends and frontends.
Definition: mythsocket.h:26