From 6664b146219ad8714be9bcda1d054db77a6fe3d4 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Fri, 5 Apr 2019 17:22:23 +0530 Subject: [PATCH] update websocketExample --- websocket_chatExample/websocket_chat | Bin 172184 -> 172184 bytes websocket_chatExample/websocket_chat.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket_chatExample/websocket_chat b/websocket_chatExample/websocket_chat index 731e34ab70f7baf38b9015b09120642ab63dc425..c91bfa6096e3311627f0da8193de80da61a0ecd1 100755 GIT binary patch delta 48 zcmV-00MGxJ!3vnc3b2F%6w$CFKXDu@8%3Roge}~Lle^4G*Mpb>x0nI}lGFk^Ah#^n G0c^?nQWT&7 delta 48 zcmV-00MGxJ!3vnc3b2F%6#jGcn?(|mby8Malb?ZmO{&S{kb{^4x0nI}lGFk%KDR8_ G0c^=A%@zg# diff --git a/websocket_chatExample/websocket_chat.c b/websocket_chatExample/websocket_chat.c index fa388db..1f0a6b9 100644 --- a/websocket_chatExample/websocket_chat.c +++ b/websocket_chatExample/websocket_chat.c @@ -49,7 +49,7 @@ void unicast(struct mg_connection *nc, const struct mg_str msg) { recipient = strtok(tmp," "); actual_msg = strtok(NULL,"\0"); printf("%s<%s\n",recipient,actual_msg); - snprintf(buf, sizeof(buf), "%s:%s ->%s",addr, nc->floID,actual_msg); + snprintf(buf, sizeof(buf), "%s:%s : %s",addr, nc->floID,actual_msg); printf("%s<-%s\n",recipient, buf); /* Local echo. */ for (c = mg_next(nc->mgr, NULL); c != NULL; c = mg_next(nc->mgr, c)) { if (!strcmp(c->floID,recipient)) /* Send to receiver */