36 (void)
Listen(Address, Port);
46 if (!listen(Address, Port))
52 if (QHostAddress::AnyIPv4 == Address)
53 LOG(VB_GENERAL, LOG_INFO, QStringLiteral(
"Listening on port %1 (IPv4 addresses only)").arg(Port));
54 else if (QHostAddress::AnyIPv6 == Address)
55 LOG(VB_GENERAL, LOG_INFO, QStringLiteral(
"Listening on port %1 (IPv6 addresses only)").arg(Port));
56 else if (QHostAddress::Any == Address)
57 LOG(VB_GENERAL, LOG_INFO, QStringLiteral(
"Listening on port %1 (IPv4 and IPv6 addresses)").arg(Port));
bool Listen(const QHostAddress &Address, int Port=0)
~TorcHTTPServerListener()
static QString IPAddressToLiteral(const QHostAddress &Address, int Port, bool UseLocalhost=true)
Convert an IP address to a string literal.
void incomingConnection(qintptr SocketDescriptor) overridefinal
#define LOG(_MASK_, _LEVEL_, _STRING_)
TorcHTTPServerListener(TorcHTTPServer *Parent, const QHostAddress &Address, int Port=0)
void NewConnection(qintptr SocketDescriptor)
void NewConnection(qintptr SocketDescriptor)