diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-24 16:35:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-24 16:35:14 +0000 |
commit | c47ca004ba979d23a86211393c9e35deadd66c46 (patch) | |
tree | ce49a57e87bf5caac81d2d54a590e3aea3d61ea3 /protocols/WhatsApp/src/WASocketConnection.h | |
parent | 126f606ea6a845d914e3ff074dc725443bb57bf0 (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/WASocketConnection.h')
-rw-r--r-- | protocols/WhatsApp/src/WASocketConnection.h | 7 |
1 files changed, 5 insertions, 2 deletions
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<unsigned char>& b, int off, int length);
+ int read(unsigned char*, int length);
void flush();
void write(const std::vector<unsigned char>& b, int length);
void write(const std::vector<unsigned char>& bytes, int offset, int length);
- int read(std::vector<unsigned char>& 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();
};
|