summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-24 16:35:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-24 16:35:14 +0000
commitc47ca004ba979d23a86211393c9e35deadd66c46 (patch)
treece49a57e87bf5caac81d2d54a590e3aea3d61ea3 /protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h
parent126f606ea6a845d914e3ff074dc725443bb57bf0 (diff)
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
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h7
1 files changed, 4 insertions, 3 deletions
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<unsigned char>& b, int length) = 0;
virtual void write(const std::vector<unsigned char>& bytes, int offset, int length) = 0;
+ virtual int read(unsigned char*, int length) = 0;
virtual int read(std::vector<unsigned char>& 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_ */