///this is the time that a request has to be completely received
int receiveTimeout()const{return mrecvtimeout;}
+ ///returns the TCP port if it runs on TCP
+ quint16 tcpPort()const;
+
public slots:
/** registers an interface to handle a specific path
*
void WServer::enableDebugUrl(bool enable){mdebugenabled=enable;}
+quint16 WServer::tcpPort()const
+{
+ if(tcpserv==nullptr)return 0;
+ return tcpserv->serverPort();
+}
+
static inline QString normalizepath(const QString &p)
{
QStringList src=QString(p).replace("\\","/").split("/",QString::SkipEmptyParts);