diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2017-11-29 09:33:41 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2017-11-29 09:33:41 +0300 |
commit | 89f3cf8bbb9dc1fa0fe72f6af6638ac086c7e011 (patch) | |
tree | 5be9a7ae2255b9ad420bed266b90b1f98059964a /protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h | |
parent | e28c4adb361a87e143eb8cb2af449e3bcb3375b1 (diff) |
libevent, telegram, whatsapp moved to deprecated coz doesn't work
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h')
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h deleted file mode 100644 index f7ed6a6bc8..0000000000 --- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h +++ /dev/null @@ -1,71 +0,0 @@ -/*
- * BinTreeNodeWriter.h
- *
- * Created on: 26/06/2012
- * Author: Antonio
- */
-
-
-#ifndef BINTREENODEWRITER_H_
-#define BINTREENODEWRITER_H_
-
-#include <string>
-#include "ProtocolTreeNode.h"
-#include "ISocketConnection.h"
-#include "ByteArray.h"
-#include "IMutex.h"
-#include "WAConnection.h"
-
-using namespace std;
-
-#define STREAM_START 1
-#define STREAM_END 2
-#define LIST_EMPTY 0
-#define LIST_8 248
-#define LIST_16 249
-#define JID_PAIR 250
-#define BINARY_8 252
-#define BINARY_24 253
-#define TOKEN_8 254
-
-#include <map>
-
-class BinTreeNodeWriter
-{
- friend class WAConnection;
-
- WAConnection *conn;
- ISocketConnection *realOut;
- ByteArrayOutputStream *out;
- IMutex *mutex;
- int dataBegin;
- bool bSecure, bFlush;
-
- void writeListStart(int i);
- void writeInt8(int v);
- void writeInt16(int v, ISocketConnection* out);
- void writeInt16(int v, ByteArrayOutputStream* out);
- void writeInt16(int v);
- void writeAttributes(std::map<string, string>* attributes);
- void writeString(const std::string &tag);
- void writeJid(std::string* user, const std::string &server);
- void writeToken(int intValue);
- void writeBytes(unsigned char* bytes, int length);
- void writeInt24(int v);
- void writeInternal(const ProtocolTreeNode &node);
- void writeDummyHeader();
- void processBuffer();
-
-public:
- BinTreeNodeWriter(WAConnection* conn, ISocketConnection* connection, IMutex* mutex);
- ~BinTreeNodeWriter();
-
- void streamStart(std::string domain, std::string resource);
- void flushBuffer(bool flushNetwork);
- void streamEnd();
- void write(const ProtocolTreeNode &node);
-
- void setSecure() { bSecure = true; }
-};
-
-#endif /* BINTREENODEWRITER_H_ */
|