From d1f7194a61f349bbd62ab1956001b1a905815ecb Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 23 一月 2024 16:23:48 +0800
Subject: [PATCH] bug fixed
---
test_socket/bus_test.cpp | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/test_socket/bus_test.cpp b/test_socket/bus_test.cpp
index 1cc4ffd..d2ead68 100644
--- a/test_socket/bus_test.cpp
+++ b/test_socket/bus_test.cpp
@@ -63,16 +63,13 @@
char content[512];
long i = 0;
-
pthread_create(&tid, NULL, run_recv, (void *)sk);
while (true) {
//printf("Usage: pub <topic> [content] or sub <topic>\n");
printf("Can I help you? sub, pub, desub or quit %d\n", i++);
- printf("client 1\n");
// scanf("%s", action);
std::cin >> action;
- printf("client 2\n");
if(strcmp(action, "sub") == 0) {
printf("Please input topic!\n");
scanf("%s", topic);
@@ -138,4 +135,4 @@
return 0;
-}
\ No newline at end of file
+}
--
Gitblit v1.8.0