Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- // Notification callback function
- typedef void(__stdcall *ZAPI_CALLBACK_FUNC)(const int code, const int type, LPVOID data, LPVOID param);
- class ClientProtocol
- {
- public:
- //---
- static ClientProtocol& Instance();
- //---
- int Connect(LPCSTR host, UserObject& authUser);
- int Subscribe(ZAPI_CALLBACK_FUNC callback, const int flags, void *param);
- void Disconnect(void);
- //---
- BYTE Ping();
- BYTE FastPing();
- BYTE EventsClientCalendar(EventCache& vec);
- BYTE RequestCreate(const RequestObject& req);
- BYTE RequestDelete(const int login, const int reqId);
- BYTE RequestsDeleteAll();
- BYTE RequestsDeleteByEvent(const int eventId);
- BYTE RequestsGet(RequestCache& vec);
- BYTE RequestsGetByEvent(RequestCache& vec, const int eventId);
- size_t bytesSent();
- size_t bytesReceived();
- };
Add Comment
Please, Sign In to add comment