From 2ce50e24d68e684d4feac169a4d0f1abc80f5e2c Mon Sep 17 00:00:00 2001 From: hevake_lcj Date: Mon, 18 Jul 2022 11:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmain/example=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E4=B8=8B=E7=9A=84=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/example/00_empty/Makefile | 1 + main/example/01_one_app/Makefile | 1 + main/example/02_more_than_one_apps/Makefile | 1 + main/example/03_nc_client_and_echo_server/Makefile | 1 + main/example/03_nc_client_and_echo_server/echo_server/app.cpp | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main/example/00_empty/Makefile b/main/example/00_empty/Makefile index 7bba09d..6bdfcde 100644 --- a/main/example/00_empty/Makefile +++ b/main/example/00_empty/Makefile @@ -6,6 +6,7 @@ TARGET := sample CXXFLAGS += -ggdb -DLOG_MODULE_ID='"demo"' LDFLAGS += -L.. \ -ltbox_main \ + -ltbox_log \ -ltbox_terminal \ -ltbox_network \ -ltbox_eventx \ diff --git a/main/example/01_one_app/Makefile b/main/example/01_one_app/Makefile index 6f47669..577137d 100644 --- a/main/example/01_one_app/Makefile +++ b/main/example/01_one_app/Makefile @@ -6,6 +6,7 @@ TARGET := sample CXXFLAGS += -ggdb -DLOG_MODULE_ID='"demo"' LDFLAGS += -L.. \ -ltbox_main \ + -ltbox_log \ -ltbox_terminal \ -ltbox_network \ -ltbox_eventx \ diff --git a/main/example/02_more_than_one_apps/Makefile b/main/example/02_more_than_one_apps/Makefile index e40bc78..92b8ff5 100644 --- a/main/example/02_more_than_one_apps/Makefile +++ b/main/example/02_more_than_one_apps/Makefile @@ -12,6 +12,7 @@ include app3/app.mk CXXFLAGS += -ggdb -DLOG_MODULE_ID='"demo"' LDFLAGS += -L.. \ -ltbox_main \ + -ltbox_log \ -ltbox_terminal \ -ltbox_network \ -ltbox_eventx \ diff --git a/main/example/03_nc_client_and_echo_server/Makefile b/main/example/03_nc_client_and_echo_server/Makefile index 840f903..3b9206c 100644 --- a/main/example/03_nc_client_and_echo_server/Makefile +++ b/main/example/03_nc_client_and_echo_server/Makefile @@ -11,6 +11,7 @@ include echo_server/app.mk CXXFLAGS += -ggdb -DLOG_MODULE_ID='"demo"' LDFLAGS += -L.. \ -ltbox_main \ + -ltbox_log \ -ltbox_terminal \ -ltbox_network \ -ltbox_eventx \ diff --git a/main/example/03_nc_client_and_echo_server/echo_server/app.cpp b/main/example/03_nc_client_and_echo_server/echo_server/app.cpp index bc556e8..05591ac 100644 --- a/main/example/03_nc_client_and_echo_server/echo_server/app.cpp +++ b/main/example/03_nc_client_and_echo_server/echo_server/app.cpp @@ -31,7 +31,7 @@ bool App::onInit(const tbox::Json &cfg) if (!js_bind.is_string()) return false; - if (!server_->initialize(SockAddr::FromString(js_bind.get()))) + if (!server_->initialize(SockAddr::FromString(js_bind.get()), 2)) return false; server_->setReceiveCallback( -- Gitee