-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathWebSocketConn.h
More file actions
38 lines (34 loc) · 853 Bytes
/
WebSocketConn.h
File metadata and controls
38 lines (34 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* =====================================================================================
*
* Filename: WebSocketConn.h
*
* Description:
*
* Version: 1.0
* Created: 06/23/16 09:44:03
* Revision: none
* Compiler: gcc
*
* Author: yangzhimin,
* Organization:
*
* =====================================================================================
*/
#ifndef WEBSOCKETCONN_H_
#define WEBSOCKETCONN_H_
#include <MsgConn.h>
#include <WebSocket.h>
#define NORMALSOCKET 1
#define WEBSOCKET 2
class WebSocketConn :public CMsgConn {
public:
WebSocketConn():CMsgConn(){m_websocket_inited = false;m_socket_type = WEBSOCKET;}
virtual void OnRead();
virtual int Send(void* data, int len);
private:
bool m_websocket_inited;
int m_socket_type;
//WebSocket *m_websocket;
};
#endif