first steps to Client

This commit is contained in:
Markus Sattler
2015-05-23 23:51:32 +02:00
parent cf54518bc9
commit b5dbeccdf5
6 changed files with 394 additions and 10 deletions

View File

@ -42,13 +42,6 @@
#define WEBSOCKETS_SERVER_CLIENT_MAX (5)
typedef enum {
WStype_ERROR,
WStype_DISCONNECTED,
WStype_CONNECTED,
WStype_TEXT,
WStype_BIN
} WStype_t;
class WebSocketsServer: private WebSockets {
@ -106,7 +99,6 @@ private:
WebSocketServerEvent _cbEvent;
void messageRecived(WSclient_t * client, WSopcode_t opcode, uint8_t * payload, size_t length);
void clientConnected(WSclient_t * client);
void clientDisconnect(WSclient_t * client);
bool clientIsConnected(WSclient_t * client);
@ -115,7 +107,6 @@ private:
void handleClientData(void);
void handleHeader(WSclient_t * client);
void handleWebsocket(WSclient_t * client);
};