From c47ca004ba979d23a86211393c9e35deadd66c46 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 24 Jan 2015 16:35:14 +0000 Subject: adaptation of WhatsApp for protocol version 1.5/2.0 git-svn-id: http://svn.miranda-ng.org/main/trunk@11898 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WASocketConnection.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/WhatsApp/src/WASocketConnection.h') diff --git a/protocols/WhatsApp/src/WASocketConnection.h b/protocols/WhatsApp/src/WASocketConnection.h index 48c64f2a1a..c585e98b3d 100644 --- a/protocols/WhatsApp/src/WASocketConnection.h +++ b/protocols/WhatsApp/src/WASocketConnection.h @@ -22,17 +22,20 @@ private: public: WASocketConnection(const std::string& dir, int port) throw (WAException); + virtual ~WASocketConnection(); + void write(int i); unsigned char read(); + int read(std::vector& b, int off, int length); + int read(unsigned char*, int length); void flush(); void write(const std::vector& b, int length); void write(const std::vector& bytes, int offset, int length); - int read(std::vector& b, int off, int length); void makeNonBlock(); int waitForRead(); void forceShutdown(); + void dump(const void *buf, int length); - virtual ~WASocketConnection(); static void initNetwork(HANDLE hNetlibUser) throw (WAException); static void quitNetwork(); }; -- cgit v1.2.3