|
|
@ -494,12 +494,14 @@ void SingleApplicationPrivate::slotDataAvailable( QLocalSocket *dataSocket, quin |
|
|
|
if ( !isFrameComplete( dataSocket ) ) |
|
|
|
if ( !isFrameComplete( dataSocket ) ) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto message = dataSocket->readAll(); |
|
|
|
|
|
|
|
|
|
|
|
writeAck( dataSocket ); |
|
|
|
writeAck( dataSocket ); |
|
|
|
|
|
|
|
|
|
|
|
ConnectionInfo &info = connectionMap[dataSocket]; |
|
|
|
ConnectionInfo &info = connectionMap[dataSocket]; |
|
|
|
info.stage = StageConnectedHeader; |
|
|
|
info.stage = StageConnectedHeader; |
|
|
|
|
|
|
|
|
|
|
|
Q_EMIT q->receivedMessage(instanceId, dataSocket->readAll()); |
|
|
|
Q_EMIT q->receivedMessage(instanceId, message); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void SingleApplicationPrivate::slotClientConnectionClosed( QLocalSocket *closedSocket, quint32 instanceId ) |
|
|
|
void SingleApplicationPrivate::slotClientConnectionClosed( QLocalSocket *closedSocket, quint32 instanceId ) |
|
|
|