43 #ifndef WEBSOCKETSERVER_H_ 44 #define WEBSOCKETSERVER_H_ 57 #define TIMEOUT_IN_MS 10000 58 #define BUFFER_LENGTH 32 62 #ifndef CALLBACK_FUNCTIONS 63 #define CALLBACK_FUNCTIONS 1 68 #ifndef MAX_FRAME_LENGTH 69 #define MAX_FRAME_LENGTH 256 72 #define SIZE(array) (sizeof(array) / sizeof(*array)) 102 #ifdef SUPPORT_HIXIE_76 103 String handleHixie76Stream();
void disconnectStream()
Definition: WebSocketServer.cpp:330
bool hixie76style
Definition: WebSocketServer.h:96
Client * socket_client
Definition: WebSocketServer.h:89
void sendData(const char *str)
Definition: WebSocketServer.cpp:367
String origin
Definition: WebSocketServer.h:94
const char * socket_urlPrefix
Definition: WebSocketServer.h:92
String getData()
Definition: WebSocketServer.cpp:353
Definition: WebSocketServer.h:74
bool analyzeRequest(int bufferLength)
Definition: WebSocketServer.cpp:46
String host
Definition: WebSocketServer.h:95
unsigned long _startMillis
Definition: WebSocketServer.h:90
int timedRead()
Definition: WebSocketServer.cpp:399
bool handshake(Client &client)
Definition: WebSocketServer.cpp:15
String handleStream()
Definition: WebSocketServer.cpp:252
void sendEncodedData(char *str)
Definition: WebSocketServer.cpp:407