2 #include "../acl_cpp_define.hpp" 5 #ifndef ACL_CLIENT_ONLY 12 class HttpServletRequest;
13 class HttpServletResponse;
39 const char* memcache_addr =
"127.0.0.1:11211");
64 bool sendBinary(
const char *buf,
int len);
71 bool sendText(
const char *text);
78 bool sendPong(
const char *buffer = NULL);
85 bool sendPing(
const char *buffer = NULL);
99 virtual bool onPing(
unsigned long long payload_len,
bool finish) = 0;
107 virtual bool onPong(
unsigned long long payload_len,
bool finish) = 0;
116 virtual bool onMessage(
unsigned long long payload_len,
117 bool text,
bool finish) = 0;
128 int readPayload(
void* buf,
size_t size);
150 #endif // ACL_CLIENT_ONLY
websocket * get_websocket(void) const
virtual void onClose(void)