cli_webSock.h

Go to the documentation of this file.
00001 
00012 #ifndef CLI_WEBSOCK_H_
00013 #define CLI_WEBSOCK_H_
00014 
00015 
00016 #include <stdio.h>
00017 #include <string.h>
00018 
00019 #include "uipopt.h"
00020 
00021 #include "../uart/uart.h"
00022 #include "../cli/debug.h"
00023 #include "../mult/api_services.h"
00024 
00025 typedef enum {
00026         SEND_CHAT = 0,
00027         RECV_CHAT = 1,
00028         WAITING_CHAT = 2,
00029         QUIT_CHAT = 3
00030 } state_t;
00031 
00032 
00036 struct chat_state{
00037         state_t state;
00038         char buff[100];
00039         int bufflen;
00040         char inbuff[200];
00041 };
00042 
00043 struct psock prot;
00044 
00045 void chat_init();
00046 void chat_start();
00047 void chat_appcall(void);
00048 int chat_communication(struct chat_state *s);
00049 
00050 #endif /* CLI_WEBSOCK_H_ */