mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
@ -46,7 +46,6 @@ void McClient::sendRequest() {
|
|||||||
writePacketToSocket(data); // send status packet
|
writePacketToSocket(data); // send status packet
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accumulate data until we have a full response, then call parseResponse() once
|
|
||||||
void McClient::readRawResponse() {
|
void McClient::readRawResponse() {
|
||||||
if (m_responseReadState == 2) {
|
if (m_responseReadState == 2) {
|
||||||
return;
|
return;
|
||||||
|
@ -24,9 +24,11 @@ class McClient : public QObject {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit McClient(QObject *parent, QString domain, QString ip, short port);
|
explicit McClient(QObject *parent, QString domain, QString ip, short port);
|
||||||
|
//! Read status data of the server, and calls the succeeded() signal with the parsed JSON data
|
||||||
void getStatusData();
|
void getStatusData();
|
||||||
private:
|
private:
|
||||||
void sendRequest();
|
void sendRequest();
|
||||||
|
//! Accumulate data until we have a full response, then call parseResponse() once
|
||||||
void readRawResponse();
|
void readRawResponse();
|
||||||
void parseResponse();
|
void parseResponse();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user