From c4e6914c29cd0ee3a2e27c708db2a977bed77cc3 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Wed, 29 May 2024 11:56:02 -0400 Subject: [PATCH] 2024-05-29 Fred Gleason * Changed the socket type from SOCK_STREAM to SOCK_SEQPACKET in the 'RDUnixServer' and 'RDUnixSocket' classes. * Removed the resynchronization code from the 'RDJsonFramer' class. * Fixed a bug in rdpadd(8) that could cause corruption when processing JSON updates. Signed-off-by: Fred Gleason --- ChangeLog | 6 ++++++ lib/rdjsonframer.cpp | 51 ++------------------------------------------ lib/rdjsonframer.h | 4 ---- lib/rdunixserver.cpp | 4 ++-- lib/rdunixsocket.cpp | 2 +- 5 files changed, 11 insertions(+), 56 deletions(-) diff --git a/ChangeLog b/ChangeLog index 94352958..14b280b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24785,3 +24785,9 @@ 2024-05-27 Fred Gleason * Fixed a regression in the 'RDHPIPlayStream::play()' method that the 'play_length' setting to be ignored. +2024-05-29 Fred Gleason + * Changed the socket type from SOCK_STREAM to SOCK_SEQPACKET in + the 'RDUnixServer' and 'RDUnixSocket' classes. + * Removed the resynchronization code from the 'RDJsonFramer' class. + * Fixed a bug in rdpadd(8) that could cause corruption when processing + JSON updates. diff --git a/lib/rdjsonframer.cpp b/lib/rdjsonframer.cpp index a2d07925..9fd89d02 100644 --- a/lib/rdjsonframer.cpp +++ b/lib/rdjsonframer.cpp @@ -23,9 +23,6 @@ RDJsonFramer::RDJsonFramer(QTcpSocket *in_sock,QObject *parent) : QObject(parent) { - d_escaped=false; - d_quoted=false; - d_level=0; d_socket=in_sock; connect(d_socket,SIGNAL(readyRead()),this,SLOT(readyReadData())); } @@ -34,9 +31,6 @@ RDJsonFramer::RDJsonFramer(QTcpSocket *in_sock,QObject *parent) RDJsonFramer::RDJsonFramer(QObject *parent) : QObject(parent) { - d_escaped=false; - d_quoted=false; - d_level=0; d_socket=NULL; } @@ -57,54 +51,13 @@ QByteArray RDJsonFramer::currentDocument() const void RDJsonFramer::write(const QByteArray &data) { - for(int i=0;i