mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
{FSD] Improved FSD socket handling
* restricter number of lines handled at once * messageTypeToString * add parsing to statistics
This commit is contained in:
committed by
Mat Sutcliffe
parent
3705818445
commit
9d53696417
@@ -283,11 +283,14 @@ namespace BlackCore
|
||||
|
||||
void readDataFromSocket();
|
||||
QString socketErrorToQString(QAbstractSocket::SocketError error);
|
||||
void parseMessage(const QString &line);
|
||||
void parseMessage(const QString &lineRaw);
|
||||
|
||||
//! Init. the message types
|
||||
void initializeMessageTypes();
|
||||
|
||||
// Type to string
|
||||
const QString &messageTypeToString(MessageType mt) const;
|
||||
|
||||
//! Handle response tokens @{
|
||||
void handleAtcDataUpdate(const QStringList &tokens);
|
||||
void handleAuthChallenge(const QStringList &tokens);
|
||||
@@ -305,6 +308,8 @@ namespace BlackCore
|
||||
void handleServerError(const QStringList &tokens);
|
||||
void handleCustomPilotPacket(const QStringList &tokens);
|
||||
void handleFsdIdentification(const QStringList &tokens);
|
||||
//
|
||||
void handleUnknownPacket(const QString &line);
|
||||
void handleUnknownPacket(const QStringList &tokens);
|
||||
//! @}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user