Websocket communication
WebSocket_COMM.h@0:c10e8dc4cffd, 2016-04-03 (annotated)
- Committer:
- 13075593
- Date:
- Sun Apr 03 15:44:52 2016 +0000
- Revision:
- 0:c10e8dc4cffd
Websocket communication
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
13075593 | 0:c10e8dc4cffd | 1 | #ifndef WS_COMM_H |
13075593 | 0:c10e8dc4cffd | 2 | #define WS_COMM_H |
13075593 | 0:c10e8dc4cffd | 3 | |
13075593 | 0:c10e8dc4cffd | 4 | #include "Websocket.h" |
13075593 | 0:c10e8dc4cffd | 5 | #include <string> |
13075593 | 0:c10e8dc4cffd | 6 | |
13075593 | 0:c10e8dc4cffd | 7 | class WebSocket_Communication |
13075593 | 0:c10e8dc4cffd | 8 | { |
13075593 | 0:c10e8dc4cffd | 9 | public: |
13075593 | 0:c10e8dc4cffd | 10 | WebSocket_Communication(string url); |
13075593 | 0:c10e8dc4cffd | 11 | void initWebSocket(); |
13075593 | 0:c10e8dc4cffd | 12 | void sendDataWebSocket(char *data); |
13075593 | 0:c10e8dc4cffd | 13 | |
13075593 | 0:c10e8dc4cffd | 14 | private : |
13075593 | 0:c10e8dc4cffd | 15 | Websocket *webSocket; |
13075593 | 0:c10e8dc4cffd | 16 | char *url; |
13075593 | 0:c10e8dc4cffd | 17 | }; |
13075593 | 0:c10e8dc4cffd | 18 | |
13075593 | 0:c10e8dc4cffd | 19 | #endif |