2021-02-25 Fred Gleason <fredg@paravelsystems.com>

* Removed vestigal signals from 'RDSocket'.
	* Fixed a bug in 'RDApplication' that could cause 'openlog(3)'
	to receive a corrupt 'ident' value.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-25 12:53:26 -05:00
parent f755f59651
commit 5d948d0848
7 changed files with 21 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
//
// A QTcpSocket object with connection-ID.
//
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License
@@ -31,10 +31,7 @@ RDSocket::RDSocket(int id,QObject *parent)
connect(this,SIGNAL(hostFound()),this,SLOT(hostFoundData()));
connect(this,SIGNAL(connected()),this,SLOT(connectedData()));
connect(this,SIGNAL(disconnected()),this,SLOT(connectionClosedData()));
connect(this,SIGNAL(delayedCloseFinished()),
this,SLOT(delayedCloseFinishedData()));
connect(this,SIGNAL(readyRead()),this,SLOT(readyReadData()));
connect(this,SIGNAL(bytesWritten(int)),this,SLOT(bytesWrittenData(int)));
connect(this,SIGNAL(error(QAbstractSocket::SocketError)),
this,SLOT(errorData(QAbstractSocket::SocketError)));
}
@@ -58,24 +55,12 @@ void RDSocket::connectionClosedData()
}
void RDSocket::delayedCloseFinishedData()
{
emit delayedCloseFinishedID(id_num);
}
void RDSocket::readyReadData()
{
emit readyReadID(id_num);
}
void RDSocket::bytesWrittenData(int nbytes)
{
emit bytesWrittenID(nbytes,id_num);
}
void RDSocket::errorData(QAbstractSocket::SocketError error)
{
emit errorID(error,id_num);