Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fix a gcc warning | a85c2219114d8b23a40901364db06580d6a40fce | Catalin(ux) M. BOIE | 2018-08-18 04:40:25 |
Notes goes under the title; title is nicer | 8acce1da5bc4866b6a4bf7fb2af53750e6749a9a | Catalin(ux) M. BOIE | 2018-08-18 04:40:08 |
CSS fixes for showing source | 1b96ffce7e3744972be0be246cd33d0b107a8553 | Catalin(ux) M. BOIE | 2018-08-17 03:42:45 |
Bump version to 1.0.39 | 9b34e52482191606aa7f92a781d5b5e33a5543c8 | Catalin(ux) M. BOIE | 2018-05-20 19:14:39 |
CSS fixes for wsdemo | 7fed15a4b4a7ebc154f68a99eb413fea4726ec26 | Catalin(ux) M. BOIE | 2018-05-20 19:13:44 |
More compiler flags for security | d33f9fdb57826353c755b86493c72993635b1053 | Catalin(ux) M. BOIE | 2018-05-20 18:56:42 |
grid1 is working now | 0370e6808f8b89fb9ae43fc139195e76247ad6c5 | Catalin(ux) M. BOIE | 2018-05-12 15:31:00 |
Added pie2 demo (svg) | e8df18b15deafdd0a810a09a251593ecd5fc608f | Catalin(ux) M. BOIE | 2018-04-17 21:46:02 |
wsdemo: added Source button | 010d08897f99736b9a3f5440af71c2dc40544e68 | Catalin(ux) M. BOIE | 2018-04-17 17:54:53 |
More tweaks to wsdemo | 56173807662daf36b36907d98bde751749c91075 | Catalin(ux) M. BOIE | 2018-04-16 18:08:18 |
Added a callback for worker start | 32a05f401d5258f06af9db15a00a615859961cc2 | Catalin(ux) M. BOIE | 2018-04-16 18:07:55 |
wsdemo improvements | 3eb3efd007fc9240ea39fabcdb4729d1367ebad2 | Catalin(ux) M. BOIE | 2018-04-13 22:47:24 |
wsdemo added | 2baae01f2409496f990b6d673013b66286f0a5af | Catalin(ux) M. BOIE | 2018-04-02 21:41:40 |
Various small stuff | 0c551268be734dd68a59426315abfc6ef776c60a | Catalin(ux) M. BOIE | 2018-04-02 21:40:49 |
More debugging for websocket parsing | 66ccde632b280f1aa450610e6b671464b7e56451 | Catalin(ux) M. BOIE | 2018-04-02 21:39:23 |
Raise to 4096 to buffer for logging | a59dee1fdfe087ff13e4c7012fe29f8da99ad75c | Catalin(ux) M. BOIE | 2018-04-02 21:38:11 |
Bump version | 9b635cebfffdd6971eefef0ebad395e21684bb8a | Catalin(ux) M. BOIE | 2018-01-13 18:07:12 |
Added some more compile flags and websocket1 helper files. | fce47295946106956fb70da77244d77ffca09423 | Catalin(ux) M. BOIE | 2018-01-13 18:03:46 |
Lots of changes everywhere | 91b9113e8f92db07c079c005273683f2e868910c | Catalin(ux) M. BOIE | 2018-01-12 19:06:04 |
Require openssl (for websocket) | b4b34eb88f38bfd421187da76611cc54476d7309 | Catalin(ux) M. BOIE | 2017-12-30 23:44:50 |
File | Lines added | Lines deleted |
---|---|---|
examples/wsdemo.c | 12 | 10 |
File examples/wsdemo.c changed (mode: 100644) (index 3594dac..0144c04) | |||
... | ... | static void process_json(struct Conn *C, struct json_object *j) | |
1253 | 1253 | Log(10, "\tWe have a grid1 event [i=%hhu j=%hhu value=[%s]]!\n", | Log(10, "\tWe have a grid1 event [i=%hhu j=%hhu value=[%s]]!\n", |
1254 | 1254 | i, k, s_text); | i, k, s_text); |
1255 | 1255 | ||
1256 | if ((i < 3) && (k < 3)) | ||
1256 | if ((i < 3) && (k < 3)) { | ||
1257 | 1257 | snprintf(grid1_data[i][k], sizeof(grid1_data[i][k]), | snprintf(grid1_data[i][k], sizeof(grid1_data[i][k]), |
1258 | 1258 | "%s", s_text); | "%s", s_text); |
1259 | 1259 | ||
1260 | q = s_text; | ||
1261 | while (isalnum(*q)) | ||
1262 | q++; | ||
1263 | *q = '\0'; | ||
1260 | q = grid1_data[i][k]; | ||
1261 | while (isalnum(*q)) | ||
1262 | q++; | ||
1263 | *q = '\0'; | ||
1264 | 1264 | ||
1265 | snprintf(code, sizeof(code), | ||
1266 | "window.wsdemo.grid1_update(%hhu, %hhu, '%s');", | ||
1267 | i, k, s_text); | ||
1268 | push_code_broadcast(C, code); | ||
1265 | snprintf(code, sizeof(code), | ||
1266 | "window.wsdemo.grid1_update(%hhu, %hhu, '%s');", | ||
1267 | i, k, s_text); | ||
1268 | push_code_broadcast(C, code); | ||
1269 | } | ||
1269 | 1270 | ||
1270 | 1271 | json_object_put(answer); | json_object_put(answer); |
1271 | 1272 | return; | return; |
... | ... | int main(void) | |
1370 | 1371 | { | { |
1371 | 1372 | int ret, fd; | int ret, fd; |
1372 | 1373 | struct Conn *C; | struct Conn *C; |
1373 | char *stats, path[256]; | ||
1374 | //char *stats; | ||
1375 | char path[256]; | ||
1374 | 1376 | struct timeval now; | struct timeval now; |
1375 | 1377 | struct tm tm; | struct tm tm; |
1376 | 1378 | unsigned int i, j; | unsigned int i, j; |