mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-02 17:09:28 +02:00
2019-06-20 Fred Gleason <fredg@paravelsystems.com>
* Refactored the 'CaeServer::readyReadData()' method in caed(8) for greater reiliency.
This commit is contained in:
parent
a7cf12d722
commit
7824e27c79
@ -18790,3 +18790,6 @@
|
|||||||
2019-06-19 Fred Gleason <fredg@paravelsystems.com>
|
2019-06-19 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Fixed a regression that caused a compilation error when
|
* Fixed a regression that caused a compilation error when
|
||||||
rebuilding the Docbook 5 documentation.
|
rebuilding the Docbook 5 documentation.
|
||||||
|
2019-06-20 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Refactored the 'CaeServer::readyReadData()' method in
|
||||||
|
caed(8) for greater reiliency.
|
||||||
|
@ -159,13 +159,19 @@ void CaeServer::readyReadData(int id)
|
|||||||
QByteArray data=cae_connections.value(id)->socket->readAll();
|
QByteArray data=cae_connections.value(id)->socket->readAll();
|
||||||
for(int i=0;i<data.size();i++) {
|
for(int i=0;i<data.size();i++) {
|
||||||
char c=0xFF&data[i];
|
char c=0xFF&data[i];
|
||||||
if(c=='!') {
|
switch(c) {
|
||||||
|
case '!':
|
||||||
ProcessCommand(id,cae_connections.value(id)->accum);
|
ProcessCommand(id,cae_connections.value(id)->accum);
|
||||||
}
|
cae_connections.value(id)->accum="";
|
||||||
else {
|
break;
|
||||||
if(isalnum(0xFF&data[i])||(c=='_')||(c=='-')||(c==' ')) {
|
|
||||||
cae_connections.value(id)->accum+=0xFF&data[i];
|
case 10:
|
||||||
}
|
case 13:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
cae_connections.value(id)->accum+=c;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user