improved a bunch of stuff, and should now have working bulk transfer (maybe)

This commit is contained in:
2016-03-24 22:28:42 +01:00
parent ff1c09d9f8
commit 23883ef582
16 changed files with 342 additions and 130 deletions
+2 -3
View File
@@ -136,8 +136,7 @@ int ICACHE_FLASH_ATTR cgiWebsockBroadcast(char *resource, char *data, int len, i
}
lw=lw->priv->next;
}
return ret;
*/
return ret;*/
return 0;
}
@@ -217,7 +216,7 @@ int ICACHE_FLASH_ATTR cgiWebSocketRecv(HttpdConnData *connData, char *data, int
//received here at the same time; no more byte iterations till the end of this frame.
//First, unmask the data
sl=len-i;
dbg("[WS] Frame payload. wasHeaderByte %d fr.len %d sl %d cmd 0x%x\n", wasHeaderByte, (int)ws->priv->fr.len, (int)sl, ws->priv->fr.flags);
dbg("[WS] Frame payload. wasHeaderByte %d fr.len %d sl %d cmd 0x%x", wasHeaderByte, (int)ws->priv->fr.len, (int)sl, ws->priv->fr.flags);
if (sl > ws->priv->fr.len) sl=ws->priv->fr.len;
for (j=0; j<sl; j++) data[i+j]^=(ws->priv->fr.mask[(ws->priv->maskCtr++)&3]);