summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/ISocketConnection.h
diff options
context:
space:
mode:
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_ */