summaryrefslogtreecommitdiff
path: root/gatoattclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'gatoattclient.h')
-rw-r--r--gatoattclient.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gatoattclient.h b/gatoattclient.h
index e373a27..aaa214b 100644
--- a/gatoattclient.h
+++ b/gatoattclient.h
@@ -41,8 +41,10 @@ public:
QByteArray value;
};
+ int mtu() const;
+
uint request(int opcode, const QByteArray &data, QObject *receiver, const char *member);
- uint requestExchangeMTU(quint8 client_mtu, QObject *receiver, const char *member);
+ uint requestExchangeMTU(quint16 client_mtu, QObject *receiver, const char *member);
uint requestFindInformation(GatoHandle start, GatoHandle end, QObject *receiver, const char *member);
uint requestFindByTypeValue(GatoHandle start, GatoHandle end, const GatoUUID &uuid, const QByteArray& value, QObject *receiver, const char *member);
uint requestReadByType(GatoHandle start, GatoHandle end, const GatoUUID &uuid, QObject *receiver, const char *member);
@@ -86,11 +88,11 @@ private slots:
void handleSocketDisconnected();
void handleSocketReadyRead();
- void handleServerMTU(uint req, quint8 server_mtu);
+ void handleServerMTU(uint req, quint16 server_mtu);
private:
GatoSocket *socket;
- quint8 mtu;
+ quint16 cur_mtu;
uint next_id;
QQueue<Request> pending_requests;
};