Added compactIDB operations and fixed bugs

This commit is contained in:
sairajzero 2019-09-29 13:55:46 +05:30
parent dd402cd454
commit bd52c44169
3 changed files with 4832 additions and 22 deletions

4852
index.html

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -77,7 +77,7 @@ static void unicast_reply(const struct mg_str msg) {
//Get receiver address from msg //Get receiver address from msg
char receiverAddr[32]; char receiverAddr[32];
int index = (int)(strchr(msg.p, ' ') - msg.p) + 1; int index = (int)(strchr(msg.p, ' ') - msg.p) + 1;
snprintf(receiverAddr, sizeof(receiverAddr), "%.*s", index, msg.p); snprintf(receiverAddr, sizeof(receiverAddr), "%.*s", index - 1, msg.p);
printf("%s\tReply\t[%d]\n", receiverAddr, (int)msg.len - index); printf("%s\tReply\t[%d]\n", receiverAddr, (int)msg.len - index);
//send msg to receiver //send msg to receiver
struct mg_connection *c; struct mg_connection *c;