mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
[FSD] Gradually increase number of read lines from FSD socket
* Avoid overflow by gradually reading more lines * Also improved sending in the same way
This commit is contained in:
committed by
Mat Sutcliffe
parent
b71dfe482c
commit
ce9b9e3e5b
@@ -314,7 +314,8 @@ namespace BlackCore
|
||||
void sendClientIdentification(const QString &fsdChallenge);
|
||||
void sendIncrementalAircraftConfig();
|
||||
|
||||
void readDataFromSocket();
|
||||
void readDataFromSocket() { this->readDataFromSocketMaxLines(); }
|
||||
void readDataFromSocketMaxLines(int maxLines = -1);
|
||||
QString socketErrorToQString(QAbstractSocket::SocketError error);
|
||||
void parseMessage(const QString &lineRaw);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user