diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-12-06 23:07:49 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-12-06 23:07:49 +0100 |
commit | a7161d92f965848049dbb2eaa80cce0aa178c0ed (patch) | |
tree | 8708beb303efb3cb5c5f69774e6128a073e1428f /gatoattclient.h | |
parent | b57f5620706c92d1fa4d233bb651134b25d86cdf (diff) | |
download | libgato-a7161d92f965848049dbb2eaa80cce0aa178c0ed.tar.gz libgato-a7161d92f965848049dbb2eaa80cce0aa178c0ed.zip |
Improve MTU exchange
Diffstat (limited to 'gatoattclient.h')
-rw-r--r-- | gatoattclient.h | 8 |
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; }; |