MythTV  master
Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
MythServer Class Reference

#include <mythsocketmanager.h>

Inheritance diagram for MythServer:
Inheritance graph
[legend]
Collaboration diagram for MythServer:
Collaboration graph
[legend]

Signals

void newConnection (qt_socket_fd_t socket)
 
void NewConnection (qt_socket_fd_t socketDescriptor)
 
- Signals inherited from ServerPool
void newConnection (QTcpSocket *)
 
void newDatagram (QByteArray, QHostAddress, quint16)
 

Public Member Functions

 MythServer (QObject *parent=nullptr)
 
- Public Member Functions inherited from ServerPool
 ServerPool (QObject *parent=nullptr)
 
 ~ServerPool (void)
 
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)
 
int maxPendingConnections (void)
 
void setMaxPendingConnections (int n)
 
quint16 serverPort (void)
 
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...
 

Protected Slots

void newTcpConnection (qt_socket_fd_t socket) override
 
- Protected Slots inherited from ServerPool
virtual void newUdpDatagram (void)
 

Protected Member Functions

void newTcpConnection (qt_socket_fd_t socket) override
 

Additional Inherited Members

- Static Public Member Functions inherited from ServerPool
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...
 

Detailed Description

Definition at line 21 of file mythsocketmanager.h.

Constructor & Destructor Documentation

◆ MythServer()

MythServer::MythServer ( QObject *  parent = nullptr)
explicit

Definition at line 49 of file mythsocketmanager.cpp.

Member Function Documentation

◆ newConnection

void MythServer::newConnection ( qt_socket_fd_t  socket)
signal

◆ newTcpConnection [1/2]

void MythServer::newTcpConnection ( qt_socket_fd_t  socket)
overrideprotectedslot

Definition at line 53 of file mythsocketmanager.cpp.

◆ NewConnection

void MythServer::NewConnection ( qt_socket_fd_t  socketDescriptor)
signal

◆ newTcpConnection() [2/2]

void MythServer::newTcpConnection ( qt_socket_fd_t  socket)
overrideprotectedvirtual

Reimplemented from ServerPool.


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