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/WhatsAPI++/ISocketConnection.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h') diff --git a/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h b/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h index a2d82efc64..b9fa3d5faa 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h +++ b/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h @@ -7,19 +7,20 @@ class ISocketConnection { public: ISocketConnection() {} + virtual ~ISocketConnection() {} + virtual void write(int i) = 0; virtual unsigned char read() = 0; virtual void flush() = 0; virtual void write(const std::vector& b, int length) = 0; virtual void write(const std::vector& bytes, int offset, int length) = 0; + virtual int read(unsigned char*, int length) = 0; virtual int read(std::vector& b, int off, int length) = 0; virtual void makeNonBlock() = 0; virtual int waitForRead() = 0; virtual void forceShutdown() = 0; - virtual ~ISocketConnection() {} - //static void initNetwork(); - //static void quitNetwork(); + virtual void dump(const void *buf, int length) = 0; }; #endif /* ISOCKETCONNECTION_H_ */ -- cgit v1.2.3