MythTV
master
|
#include <mythraopdevice.h>
Public Slots | |
void | TVPlaybackStarting (void) |
Public Member Functions | |
MythRAOPDevice () | |
void | DeleteAllClients (MythRAOPConnection *keep) |
![]() | |
ServerPool (QObject *parent=nullptr) | |
~ServerPool (void) override | |
bool | listen (QList< QHostAddress > addrs, quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
bool | listen (QStringList addrs, quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
bool | listen (quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
bool | bind (QList< QHostAddress > addrs, quint16 port, bool requireall=true) |
bool | bind (QStringList addrs, quint16 port, bool requireall=true) |
bool | bind (quint16 port, bool requireall=true) |
qint64 | writeDatagram (const char *data, qint64 size, const QHostAddress &addr, quint16 port) |
qint64 | writeDatagram (const QByteArray &datagram, const QHostAddress &addr, quint16 port) |
bool | isListening (void) const |
int | maxPendingConnections (void) const |
void | setMaxPendingConnections (int n) |
quint16 | serverPort (void) const |
QNetworkProxy | proxy (void) |
void | setProxy (const QNetworkProxy &proxy) |
void | close (void) |
int | tryListeningPort (int baseport, int range=1) |
tryListeningPort More... | |
int | tryBindingPort (int baseport, int range=1) |
tryBindingPort More... | |
Static Public Member Functions | |
static bool | Create (void) |
static void | Cleanup (void) |
static MythRAOPDevice * | RAOPSharedInstance (void) |
![]() | |
static void | RefreshDefaultListen (void) |
static QList< QHostAddress > | DefaultListen (void) |
static QList< QHostAddress > | DefaultListenIPv4 (void) |
static QList< QHostAddress > | DefaultListenIPv6 (void) |
static QList< QHostAddress > | DefaultBroadcast (void) |
static QList< QHostAddress > | DefaultBroadcastIPv4 (void) |
static QList< QHostAddress > | DefaultBroadcastIPv6 (void) |
static int | tryListeningPort (QTcpServer *server, int baseport, int range=1, bool *isipv6=nullptr) |
tryListeningPort More... | |
static int | tryBindingPort (QUdpSocket *socket, int baseport, int range=1, bool *isipv6=nullptr) |
tryBindingPort More... | |
Private Slots | |
void | Start () |
void | Stop () |
void | newRaopConnection (QTcpSocket *client) |
void | deleteClient () |
Private Member Functions | |
~MythRAOPDevice (void) override | |
void | Teardown (void) |
bool | RegisterForBonjour (void) |
Private Attributes | |
QString | m_name {"MythTV"} |
QByteArray | m_hardwareId |
BonjourRegister * | m_bonjour {nullptr} |
bool | m_valid {false} |
QRecursiveMutex * | m_lock {nullptr} |
int | m_setupPort {5000} |
int | m_basePort {0} |
QList< MythRAOPConnection * > | m_clients |
Static Private Attributes | |
static MythRAOPDevice * | gMythRAOPDevice = nullptr |
static QRecursiveMutex * | gMythRAOPDeviceMutex = new QRecursiveMutex() |
static MThread * | gMythRAOPDeviceThread = nullptr |
Additional Inherited Members | |
![]() | |
void | newConnection (QTcpSocket *) |
void | newDatagram (QByteArray, QHostAddress, quint16) |
![]() | |
virtual void | newUdpDatagram (void) |
virtual void | newTcpConnection (qintptr socket) |
Definition at line 20 of file mythraopdevice.h.
MythRAOPDevice::MythRAOPDevice | ( | ) |
Definition at line 93 of file mythraopdevice.cpp.
Referenced by Create().
|
overrideprivate |
Definition at line 103 of file mythraopdevice.cpp.
|
static |
Definition at line 30 of file mythraopdevice.cpp.
Referenced by main().
|
static |
Definition at line 76 of file mythraopdevice.cpp.
|
inlinestatic |
Definition at line 27 of file mythraopdevice.h.
void MythRAOPDevice::DeleteAllClients | ( | MythRAOPConnection * | keep | ) |
Definition at line 272 of file mythraopdevice.cpp.
Referenced by Teardown(), and TVPlaybackStarting().
|
slot |
Definition at line 210 of file mythraopdevice.cpp.
Referenced by newRaopConnection().
|
privateslot |
Definition at line 124 of file mythraopdevice.cpp.
Referenced by Create().
|
privateslot |
Definition at line 159 of file mythraopdevice.cpp.
Referenced by Create().
|
privateslot |
Definition at line 216 of file mythraopdevice.cpp.
Referenced by Start().
|
privateslot |
Definition at line 246 of file mythraopdevice.cpp.
Referenced by newRaopConnection().
|
private |
Definition at line 109 of file mythraopdevice.cpp.
Referenced by Stop().
|
private |
Definition at line 164 of file mythraopdevice.cpp.
Referenced by Start().
|
staticprivate |
Definition at line 47 of file mythraopdevice.h.
|
staticprivate |
Definition at line 51 of file mythraopdevice.h.
|
staticprivate |
Definition at line 53 of file mythraopdevice.h.
|
private |
Definition at line 56 of file mythraopdevice.h.
Referenced by RegisterForBonjour().
|
private |
Definition at line 57 of file mythraopdevice.h.
Referenced by MythRAOPDevice(), newRaopConnection(), and RegisterForBonjour().
|
private |
Definition at line 58 of file mythraopdevice.h.
Referenced by RegisterForBonjour(), and Teardown().
Definition at line 59 of file mythraopdevice.h.
Referenced by Start(), and Teardown().
|
private |
Definition at line 63 of file mythraopdevice.h.
Referenced by DeleteAllClients(), deleteClient(), newRaopConnection(), Start(), Teardown(), and ~MythRAOPDevice().
|
private |
Definition at line 65 of file mythraopdevice.h.
Referenced by RegisterForBonjour(), and Start().
|
private |
Definition at line 66 of file mythraopdevice.h.
Referenced by RegisterForBonjour(), and Start().
|
private |
Definition at line 67 of file mythraopdevice.h.
Referenced by DeleteAllClients(), deleteClient(), and newRaopConnection().