master
parent
2c1ce559bf
commit
df09442812
|
@ -80,7 +80,11 @@ TcpServer::TcpServer(QObject *parent) : QTcpServer(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (QT_VERSION > QT_VERSION_CHECK(5,0,0))
|
||||||
|
void TcpServer::incomingConnection(qintptr handle)
|
||||||
|
#else
|
||||||
void TcpServer::incomingConnection(int handle)
|
void TcpServer::incomingConnection(int handle)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
TcpClient *client = new TcpClient(this);
|
TcpClient *client = new TcpClient(this);
|
||||||
client->setSocketDescriptor(handle);
|
client->setSocketDescriptor(handle);
|
||||||
|
|
|
@ -42,7 +42,11 @@ private:
|
||||||
QList<TcpClient *> clients;
|
QList<TcpClient *> clients;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
#if (QT_VERSION > QT_VERSION_CHECK(5,0,0))
|
||||||
|
void incomingConnection(qintptr handle);
|
||||||
|
#else
|
||||||
void incomingConnection(int handle);
|
void incomingConnection(int handle);
|
||||||
|
#endif
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void disconnected();
|
void disconnected();
|
||||||
|
|
Loading…
Reference in New Issue